Commit graph

17598 commits

Author SHA1 Message Date
andreas kainz
b7f8c39c59 Color Var: btns.css use var colors
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I7af79aeafd53039227d6aa8ad6f837c92b7f4a34
2022-02-27 23:30:00 +01:00
andreas kainz
314e29a9fb css vars use header-font-size and default-font-size
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I0388e2b38cc13920eb5c2de74ad34fde56f4d417
2022-02-27 23:30:00 +01:00
andreas kainz
bbf8d27e30 CSS Vars: idle Dialog use var colors
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ic0ca5860f67d4d0299e5d33c73c973db462a147d
2022-02-27 09:35:59 +01:00
andreas kainz
3af32a598c Color-Scheme add header-font-size and default-height
--header-font-size is for the user of font in header sections
--default-height is used for the height of --default-font-size elements

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I16b7f0b5755cb54ceb26b6af66d13a8411fa0d84
2022-02-26 12:04:42 +01:00
andreas kainz
8540cfa9e3 Annotation dialog use css var's
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I0b90a53e7cbe1e1f271ede0a342103e7f1db29c4
2022-02-26 11:58:10 +01:00
andreas kainz
8bc1060a6b Use var(--border-radius) instead of 3px 4px 5px
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: If7d5221bb4a51d04bcf2e28f6864fcd0abddebaf
2022-02-26 11:58:10 +01:00
andreas kainz
a87ee71fc5 Context menu use css var's
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I00eafe6f9d310ce64f9350154ae8f9d6262b5a9f
2022-02-26 11:58:10 +01:00
andreas kainz
f30741f20f Add css vars and harmonize settings for dialogues
Dialogue box-shadow setting:
-webkit-box-shadow: 0 0 3px var(--color-border);
box-shadow: 0 0 3px var(--color-box-shadow);

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I4ce226b317d3c30dcf508e4272eba690b007ff80
2022-02-26 11:58:10 +01:00
Pedro Pinto Silva
e2a326c6ab Autofilter: decrease size by remove padding and frames
Autofilter dropdown was too big and with too many elements with
padding and margin on top of that it had too many lines (giving it a
"boxy" look) and making it hard to scan the information (too much
emphasis on the structure rather than the content)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0fbcaab2abe5084ee0604182f56458efb6ea6b0a
2022-02-25 19:10:48 +03:00
Pedro Pinto Silva
79c4e93749 Autofilter: checkboxes: don't style as ok and cancel btns
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I339ce200f2cc8c521dd9e3a170ea49e5d24900c1
2022-02-25 19:10:48 +03:00
Pedro Pinto Silva
bda34c9096 Fix autofilter: pushbuttons alignment
Fix pushbuttons alignment and make sure autofilter dialog is inheriting
jsdialogs style:
 - Add missing class when calling jsDialogBuilder

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4a963a4189630f515be9f4de9285bcc1e4c0b291
2022-02-25 19:10:48 +03:00
Pedro Pinto Silva
de051c0408 Fix autofilter (un)select buttons: size
Icons were too small, set them to the same size used in toggle all btn
 - 18px

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Idbe7b7f2ddeb4dd53bc5e1fcd2d5728c029d4a1c
2022-02-25 19:10:48 +03:00
Pedro Pinto Silva
f606f0af3d Fix autofilter (un)select buttons: hide img
Right it comes from core side a 64 base image that does not fit
the rest of the checkboxes we use. Plus we are already setting bg img,
which means we were getting not one but two images rendered.
- Hide image that comes from core

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8ecdb81647e50f99b6cb0a6e3df1460664cea9e3
2022-02-25 19:10:48 +03:00
Rash419
50678c5191 wsd: introduce remote configuration
fetch JSON from remote server and apply new config without restarting coolwsd
- Extended the feature_locked configuration & functionality so that it can be set per wopi host ranges

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Id0e2b4b524a80de88b2b3559dd18c4a95b8163fb
2022-02-25 18:36:06 +03:00
Andika Triwidada
1023458335 Translated using Weblate (Indonesian)
Currently translated at 63.4% (290 of 457 strings)

Translated using Weblate (Indonesian)

Currently translated at 100.0% (429 of 429 strings)

Co-authored-by: Andika Triwidada <andika@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/id/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If5ca23fc85aaf0b26b9e21806b5709764fc039e2
2022-02-25 15:17:24 +01:00
Stanislav Horáček
d445a18790 Translated using Weblate (Czech)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (110 of 110 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (429 of 429 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (457 of 457 strings)

Co-authored-by: Stanislav Horáček <stanislav.horacek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I38746d77e43abdebea34e5dab347f74788a23664
2022-02-25 15:17:24 +01:00
Yaron Shahrabani
2a2d714103 Translated using Weblate (Hebrew)
Currently translated at 68.7% (314 of 457 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/he/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I799d51fa25968b4ce29d05e11a2ee2455a6b2593
2022-02-25 15:17:24 +01:00
Pavel Borecki
a65133b691 Translated using Weblate (Czech)
Currently translated at 100.0% (457 of 457 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (429 of 429 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (110 of 110 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: Pavel Borecki <pavel.borecki@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6e0a781c1be42438c4cd6cf760532d7f78381c49
2022-02-25 15:17:23 +01:00
Miloš Šrámek
c1d5dfcabc Translated using Weblate (Slovak)
Currently translated at 91.2% (417 of 457 strings)

Translated using Weblate (Slovak)

Currently translated at 100.0% (429 of 429 strings)

Co-authored-by: Miloš Šrámek <msramek22@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sk/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iaa4c2a31a3329bc0868175b5d3814f8cf8ee7cd4
2022-02-25 15:17:23 +01:00
Jan Holesovsky
95df6748e3 Translated using Weblate (Czech)
Currently translated at 100.0% (429 of 429 strings)

Co-authored-by: Jan Holesovsky <kendy@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0af159ffa8fb68937de39eed608de2e58a65b61e
2022-02-25 15:17:23 +01:00
Stanislav Horáček
a5e5dd2c68 Translated using Weblate (Czech)
Currently translated at 100.0% (429 of 429 strings)

Co-authored-by: Stanislav Horáček <stanislav.horacek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id0da5abc8edfd7764d1bfe78667aa0c8f789fb9f
2022-02-25 15:17:23 +01:00
Andras Timar
86b51bf8d6 Translated using Weblate (Hungarian)
Currently translated at 100.0% (429 of 429 strings)

Translated using Weblate (Arabic)

Currently translated at 100.0% (429 of 429 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ar/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I57f1033b23656b76a15dd0ebf1b723f6026a91f7
2022-02-25 15:17:23 +01:00
Ashod Nakashian
08061da286 wsd: faster save and exit when unloading
Change-Id: Ic99739867c3e9529bf0369388700398eb178265c
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-25 07:54:11 -05:00
Ashod Nakashian
948e8d5202 wsd: do not skip uploading when last save skipped
When the document isn't modified and we save,
we get back "unmodified" failure from Core.
This has the unwanted side-effect of skipping
uploading.

As we now decide whether to upload or not
based on the file timestamp on disk,
this logic has no purpose and in fact can
cause a lot of grief.

Removing this outdated logic has the nice
side-effect of simplifying the code, as
the save result doesn't need to be propagated.

Also, save failures are now communicated to
clients at the point of handling the save
response, not when uploading (which is
a distinct stage). And upload failures
are reported separately.

Change-Id: Ia465a0069280fb6bea47e413f0d885565f0bbb3d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-25 07:54:11 -05:00
Ashod Nakashian
489c942aae wsd: do not clobber closeReason
The closeReason member isn't just for logging,
it's is also broadcast back to clients. This
means that it has to preserve the original
reason for initiating the document closing,
lest the client misbehaves.

Change-Id: Iddee5dba3943d873e8658ce5c1748f4ecd47c486
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-25 07:54:11 -05:00
Ashod Nakashian
3c953faded wsd: send the client 'docunloading' for all unloading cases
And don't load documents when the ShutdownRequestedFlag
is set, not just the TerminationFlag.

Change-Id: I94c720d6fd7c361549bc905e093886619e8f188b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-25 07:54:11 -05:00
Ashod Nakashian
d0597288dc wsd: stop if unloading and have no sessions to upload
It is possible to lose the last writable session
during unloading and get stuck forever.

This can happen in the following scenario (as observed
in a rare test run):

1. always_save_on_exit is true.
2. The last/only writable session disconnects.
3. We save and upload.
4. We attempt to stop because the clients have disconnected,
   but because we are uploading, it doesn't flag to stop.
5. Uploading fails repeatedly until we reach the limit.
6. We endlessly check to save and upload and even though
   there is nothing to save, we couldn't even check for
   the need to upload, getting stuck.

With this patch the above scenario is not possible.

Change-Id: I19e7b621f2b452a9f18964f5f19d6eb378a48797
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-25 07:54:11 -05:00
Pranam Lashkari
d982085176 fixed feature locking on the sidebar
problem:
locking a command which has uno button on the sidebar,
would result in locking all the DOM siblings

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I0e97ecd52e0be1fe262f8f9605c253c76f3d0a86
2022-02-25 16:13:08 +05:30
Andreas_K
32f5c874e7 Sidebar Widget right alignment with text-align
Signed-off-by: Andreas_K <andreas_k@abwesend.de>
Change-Id: I6213fd2c35791bc368d802159a37cc0e89ec4bf3
2022-02-25 10:46:20 +01:00
Pedro Pinto Silva
57fa29f692 NB: Fix Save savemodified indicators' contrast
Context:
With the f4cde4a18c there is no visual
delimiter between the icon and the indicator which results in lack of
contrast.

- Add back shadow and tweak it so we do have better contrast between
them
- Also tweak indicators' position so it's aligned to the top and so it
feels more like an indicator (notifying the user)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I2ff6e00383a7ad7305680c92b587fc1b6890a886
2022-02-25 10:09:48 +01:00
andreas kainz
5012f600ab Add Color Scheme Var's
to dialog, popup widgets

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I8f0170b181f88ed8e4b3f1b9a4303a9f21ab0083
2022-02-25 09:54:52 +01:00
andreas kainz
fbb6817b60 menubar.css use var colors
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ib5f68ff37f871ebfd9e5ce686ac9a9a6f7ac96a5
2022-02-24 22:13:24 +01:00
andreas kainz
bfaa1bdd72 Toolbar userList popup use var colors
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I99fef529221dca02570a5d3157039cf1fb23393b
2022-02-24 22:12:32 +01:00
andreas kainz
d219d76d40 Toolbar insertshape popup use var colors
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I6f2cc63ca4bbd660b20bbdb6fcff5a070a829095
2022-02-24 22:12:32 +01:00
andreas kainz
97c9892c0b Toolbar conditionalformatmenu popop use var colors
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ie504d4516759b298062ae500b907261139be4145
2022-02-24 22:12:32 +01:00
andreas kainz
d50df5eda3 Toolbar Calc setborderstyle popup use var's
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Iebef42f31d1477baec54f72e263c310e12a70b5f
2022-02-24 22:12:32 +01:00
andreas kainz
ee2bbdf16d Toolbar leaflet-bar and search use var's
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ifcaf4f22d708dc346ab3ad6e37f9fe8bb4e9bb8c
2022-02-24 22:12:32 +01:00
andreas kainz
33362b2de4 Toolbar Close button css use var's
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: If6b469543e36399822776856664aca9e4bf956ab
2022-02-24 22:12:32 +01:00
andreas kainz
5af44276aa Toolbar Statusbar button.checked arrow use color-text-dark
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I9e31180741f27548ef6821444528ea49c16475bc
2022-02-24 22:12:32 +01:00
andreas kainz
ae09e98841 Toolbar Statusbar StatusInactive box-shadow
add var's

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Iff67ce47925d54fbfef00d5af36588c3897aa4ce
2022-02-24 22:12:32 +01:00
andreas kainz
96a426672b Toolbar Statusbar PermissionMode Text use color-primary-text
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ica4d03e18a018fcdc1173d11ebfc0798973db779
2022-02-24 22:12:32 +01:00
andreas kainz
4ce050acb8 Use CSS Var's
classic toolbar toolbar background didn't need a color

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Iddb4058ff56535222c3794746f07d383d8b4c526
2022-02-24 22:12:32 +01:00
andreas kainz
a2935d55e1 Shortcuts-bar remove menubar
all commands from menubar was added to the notebookbar
so no need for the hamburger menubar button

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Icb283b40c269d2f92a29ad16dba8dda9d0f860d2
2022-02-24 17:23:15 +01:00
Gökay Şatır
a4f53abac2 Put welcome stuff into one place.
Make the html, js and css files same with server.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Iac268811c01abee3a1b313084959e0ce70666a3b
2022-02-24 19:15:35 +03:00
Gökay Şatır
1fe48cd0a0 Use JSON objects for messaging.
Set timeout for closing the feedback dialogue to ensure that we sent the message.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ieaff907faac0506b065c991e5e8fac4ccad8d8e2
2022-02-24 19:15:35 +03:00
Henry Castro
b965b90b3a welcome: update the welcome.html url
Change-Id: I9925c2a86261510e0ae8849d9be11a7a60d43c56
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-02-24 19:15:35 +03:00
Henry Castro
83969a22b4 welcome: add welcome.css file
Change-Id: I9109ee777615b5b872f97aa95b7fe36caf6e6d0c
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-02-24 19:15:35 +03:00
Henry Castro
8404465fcd welcome: add CSS tags to welcome dialog
Change-Id: Ibe713b37a6ba00ad84a6e887c49b5fc6eb88b239
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-02-24 19:15:35 +03:00
Henry Castro
3bffee13bc wsd: pre-process the welcome.html file
Change-Id: Ib20bb3b5bf4affab42d31acd50030da66537b801
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-02-24 19:15:35 +03:00
Henry Castro
56af316604 browser: makefile: the welcome folder has images and CSS files
Modify the rules to install CSS and images to welcome folder

Change-Id: I805666daed893c08938e7d0c4240e8a62e005e52
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-02-24 19:15:35 +03:00