Commit graph

17490 commits

Author SHA1 Message Date
andreas kainz
e934ef8afa Toolbar: fold icon
add an hover background-color and border frame

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ic118965bea138bb0f82742020b9b162056fb02d9
2022-02-11 20:25:55 +01:00
andreas kainz
1e35998127 Document-name-input Edited layout
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Iaa053d6b886597da26111e0e53251a507b09448b
2022-02-11 20:25:55 +01:00
andreas kainz
219a6b16aa Document-name-input use --color-main-text
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I675155b84938897b6bcede8943e1fcaf3029fbfb
2022-02-11 20:25:55 +01:00
andreas kainz
56497eae59 Impress slide sorter
use transparent if no color definition is needed
so the color was defined only once.

add frame with --color-border
add selected page frame with --color-primary-dark
add hover page frame with --color-primary-darker

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I49dd896cae164da3e778a56f0ca478d116b23cec
2022-02-11 20:25:55 +01:00
andreas kainz
3ad31da905 Spreadsheet toolbar and formulabar use --color-border for the border
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I06880d8aacfca16e937eb40907f8799420daf046
2022-02-11 20:25:55 +01:00
andreas kainz
45e859e444 Statusbar: Inactive strings use --color-text-lighter
See also Strings in the menubar

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I1ab6c0ca9b707839d9da174c0c48a76056a3ec04
2022-02-11 20:25:55 +01:00
andreas kainz
473644e568 toolbar-up.w2ui-toolbar use correct variables
correct var for background and border was used

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I4170e962250ffef87dcd3d5c43dffceeda0fc0d0
2022-02-11 20:25:55 +01:00
andreas kainz
e9932f29f9 Statusbar search-input: use variables
hardcoded border colors and radius get replaced by var's
hover effect was added
::placeholder color was defined with --color-main-text

Pedro: no need to add ms vendor CSS stuff as we dropped ie
support. (And Edge support the regular property)

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I273842fc25d6f6f91914365499a58d7823669abf
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
2022-02-11 20:25:55 +01:00
andreas kainz
90c62fff4f sidebar .ui-frame-label use --color-main-text
text which isn't selected or for anything importand,
should use --color-main-text

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I93602996484bf877ded864954d6560aab0411f49
2022-02-11 20:25:55 +01:00
andreas kainz
a3c0ea3a10 Sidebar expander separator line use --color-border-lighter
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ib28f00a968d0eff6f1c958f4fb1b8fc0400721a5
2022-02-11 20:25:55 +01:00
andreas kainz
877284e66f Separator lines use --color-border-lighter
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ibc5026ce1ce6dfc3302877976623aa94ed943c3b
2022-02-11 20:25:55 +01:00
andreas kainz
ffc9c921ce color-palette: use color-palette vars instead of hardcoded colors
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I23f78c8c6e87417095c2c0bc029fda5f43f5a488
2022-02-11 20:25:55 +01:00
Pranam Lashkari
7e22a01d4d refactored feature disabling bits
now it is known as feature locking

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I2935edbfe1eb8dcc194641afa2461cf77b2b29d3
2022-02-11 17:00:11 +00:00
Mert Tumer
03cd38dc5e notebookbar: Send statusbarchanged event after the visibility changed
Adding or removing class selected looks incorrect even though it
works this way because of sending the event before we change its visibility
but the correct way should be sending it after we change its visibilty

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ibe7b48d6c4b421bd914f833883e866894366f022
2022-02-11 10:35:35 +01:00
Mert Tumer
bcef4fb807 notebookbar: fix toggle ruler state on change
We must send additional ruler state when we read
the ui defaults also class selected must be added or removed the other
way around. The rulerchanged event was sent before the correct
place and that was why it was made the opposite now it is sent
after we change the visibility.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I8e59003fef433e6692f02e144223c4e0ee833330
2022-02-11 10:35:35 +01:00
andreas kainz
c0cab4b398 Sidebar Calc Number Format
Alignment the spinfields and the dropdown menues

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I2a9cd9e2032391d7b22034568137ffe33f069225
2022-02-11 09:20:51 +01:00
andreas kainz
a94674a17e Sidebar Calc Cell Appearance smaler height usage
The cell Appearance in calc sidebar show the following commands:
- background color
- border arrange with border width
- border color

in master there is a lot of vertical space used
without additional feature
so the height was shrinked to one row only

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I0831995ccfc18bc6625304d8faeb65fae0fea9f2
2022-02-11 00:53:19 +01:00
andreas kainz
db2f0afdce Sidebar Writer Table Edit Panel
In the writer Sidebar at the Table Panel
the items from the second row will be left
aligned so no flex-end is needed.

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I315115d4776d8431cf6df2112970651f9f36bbd3
2022-02-10 21:48:31 +01:00
andreas kainz
9e2690d198 Sidebar alignment fixes
move #table-indentfieldbox for better alignment

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I5238c6efda7d58d8eb7612eb91329ac9b45d11db
2022-02-10 21:46:57 +01:00
Andras Timar
5c62b71aa0 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I09a84b34f0919f845c9b8b1934b3119bc07cbe33
2022-02-10 10:34:13 +01:00
Weblate
33b44156c4 Added translation using Weblate (Breton)
Added translation using Weblate (Breton)

Added translation using Weblate (Breton)

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie1a576fe5ff490422472103579b3b7a1a40222f5
2022-02-10 10:27:26 +01:00
Linda 'linigrhf' Ayasing
6805a7ea60 Translated using Weblate (Breton)
Currently translated at 11.7% (52 of 443 strings)

Added translation using Weblate (Breton)

Co-authored-by: Linda 'linigrhf' Ayasing <linigrhf@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/br/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icb0c771e909d86af41b950621c88d0a58b7523a5
2022-02-10 10:27:26 +01:00
bruh
af69582c4b Translated using Weblate (Vietnamese)
Currently translated at 100.0% (443 of 443 strings)

Co-authored-by: bruh <quangtrung02hn16@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/vi/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6a5020f765bb4ce3a30460e8412ac28fef6d87f3
2022-02-10 10:27:26 +01:00
Rob Pearson
b5792379a8 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (443 of 443 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (443 of 443 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (443 of 443 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (443 of 443 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I311868beba3ac97ad3652958813d7766c527fff3
2022-02-10 10:27:26 +01:00
Simon T
40503588fa Translated using Weblate (Danish)
Currently translated at 81.7% (362 of 443 strings)

Co-authored-by: Simon T <simonpmt@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/da/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If725530fe9fdc8f8c52c668bad50d9488d991afc
2022-02-10 10:27:25 +01:00
Sebastiaan Veld
0d3923d549 Translated using Weblate (Dutch)
Currently translated at 67.3% (308 of 457 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (443 of 443 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Co-authored-by: sebastiaanveld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iae776b508106a7a947015b11fd09e3fdb8ad6d90
2022-02-10 10:27:25 +01:00
Adolfo Jayme Barrientos
bf77113bef Translated using Weblate (Spanish)
Currently translated at 100.0% (443 of 443 strings)

Translated using Weblate (Catalan)

Currently translated at 96.6% (428 of 443 strings)

Translated using Weblate (Asturian)

Currently translated at 42.8% (190 of 443 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ast/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2cbd6b7f7ee5d7075d9d3e06d09f806bf4807cb9
2022-02-10 10:27:25 +01:00
Andras Timar
a12f5a85e0 Translated using Weblate (Arabic)
Currently translated at 100.0% (443 of 443 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ar/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I04f80acca4a2d29602492076845f9361528cb814
2022-02-10 10:27:25 +01:00
Riyadh Talal
d45b01abf5 Translated using Weblate (Arabic)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Arabic)

Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Arabic)

Currently translated at 29.0% (32 of 110 strings)

Co-authored-by: Riyadh Talal <riyadhtalal@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ar/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/ar/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ar/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2e875b2393ebc278ef4897b86222b8af28349a7e
2022-02-10 10:27:25 +01:00
Rizal Muttaqin
ea410dfe0e Translated using Weblate (Indonesian)
Currently translated at 61.9% (283 of 457 strings)

Translated using Weblate (Indonesian)

Currently translated at 60.3% (276 of 457 strings)

Translated using Weblate (Indonesian)

Currently translated at 99.7% (442 of 443 strings)

Translated using Weblate (Indonesian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Indonesian)

Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Indonesian)

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/id/
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: Icec67624c6708940bf0766ead1b52560e1c4df42
2022-02-10 10:27:25 +01:00
Andras Timar
3464b2f932 Bump package version to 21.11.2.0 (debian/changelog)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I25bd500f433e9bf44f0be2e191a3378439d828fa
2022-02-10 10:26:39 +01:00
Andras Timar
6602c7b407 Bump package version to 21.11.2.0
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I66a6f03fea76c49596dddfef4ad621229ff82858
2022-02-10 10:12:59 +01:00
Andras Timar
384d29cba0 disable LanguageStatus dropdown in readonly mode, because readonly user can't change Language
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I46ee87c89f5e0271aae1649794f674d038242b7a
2022-02-10 10:12:03 +01:00
Rash419
cd34d9b531 cypress: temporarily disable few NB tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Iae5ea1f891a149e49aea0cdea3fcd25317877c06
2022-02-10 14:12:28 +05:30
Ashod Nakashian
af77b68d97 wsd: limit store failure when unloading
When saving and/or uploading fails, we have
to give up after a certain number of retries.

A new config entry, per_document.limit_store_failures,
controls the number of consecutive failures
before giving up. This prevents locking-up
documents while uploading.

Includes a new unit-test.

Change-Id: I1296df1691fcaa982df9e861d34cb946a2eda860
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-09 19:35:19 -05:00
Ashod Nakashian
6c2fe26e3f wsd: count save and upload failures
Change-Id: Ifaae1fb1f28e7c25b359fff313b570c9ed8cf224
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-09 19:35:19 -05:00
Ashod Nakashian
30c0ec88cf gitingore: .clangd and .cache
Change-Id: I59f978ae46d25ed131f2731cb1c6580cb1606ac4
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-09 19:35:19 -05:00
Ashod Nakashian
203a58f6d8 wsd: test: add SaveOnExit test
Refactor UnitWOPIDocumentConflict.cpp into
WOPIUploadConflictCommon.hpp and reuse for both
DocumentConflict and SaveOnExit tests.

Change-Id: I54ec1e37e5e9c6298b12a2b2e596363683fb2e34
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
251df512ec wsd: test: add discarding after closing test to DocumentConflict
Change-Id: I9b2d100c4fcbeaa0def99332b71d8b22c51812f3
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
4476818b86 wsd: test: rework and extend UnitWOPIDocumentConflict
Now we have multiple document conflict scenarios
that exercise different states of DocBroker and
verify correct behavior in all cases.

Change-Id: Ia1a65be686a0899776799c82c1ebfd405c92dcab
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
2f19b8bdef wsd: merge unloading logic and centralize
Change-Id: Idfae52b5f76ef26795a57af646eef7c4a0e44b0b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
ee7679ad8e wsd: reuse autoSaveAndStop for consistentcy
Change-Id: Ia58b490e0c580c8684c75baa9122fb3fa45562c5
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
d8c2578ec4 wsd: detect storage conflict with no clients
When the last client connection is closed,
there is UI (or user) to provide input
on the document conflict dialog. In this
case, we detect that the situation is final
and unresolvable and we simply give up.

We log a warning and dump the document state
before terminating.

Change-Id: I111a446b8743a0d16b7ed8b39751a419036c927f
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
2d7e4da181 wsd: do not force uploading when in conflict
When the document has been changed in storage,
we should be extra careful not to inadvertently
clobber it because we needed to force the
upload for some unrelated reason.

When in conflict, only a user can force clobbering.

Change-Id: I498a6d1c86242b059ac722d3e48c31a04a79591b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
26b6cd4463 wsd: improved removeSession
Since we track active sessions in removeSession,
it's possible that the last session is not active.
In that case, we should set the unload flag while
saving. If we've removed it, we should mark to
destroy. And finally, we should only assert
that mark to destroy is set with active session,
not when we are left with disconnected ones.

Change-Id: I275aeafe67875fa75e0fad5438928f2f77b79a9a
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
d9a3a42137 wsd: wait for the modified flag before giving up
By waiting at most 2 seconds, we improve the chances
of getting the ModifiedStatus=false before we termiante
the document. This minimizes the noise of warning
of potentially lost data on exit and similarly reduces
the test failures, which test for clear termination.

Change-Id: I284693d1cdd91b1224581fdc29e6e5438ab4c0b2
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Pranam Lashkari
35b3b87704 Fixed broken freeBSD CI
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I39630d59f432ddd0712063ded0629ab0f4953839
2022-02-08 20:39:55 +03:00
Ashod Nakashian
9702cce25f wsd: preserve the original modified time as string
We no store the origina modified time of the document
as we receive from the storage server in string
form and send it back as-is. This avoids any
potential issues with the roundtrip of conversion
to and from a timestamp.

Change-Id: I524bea8f36c3ce62dcd00c4fe6a1e7e083287ed1
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 08:05:39 -05:00
Rash419
4f0c84f70d cypress: removed explicit wait from row_column_operation_spec.js tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib3a869cd65c80a6dffa2992284cbf46aa3fc30bf
2022-02-08 15:00:41 +05:30
Gökay Şatır
3002449b59 Set formula bar length.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I6acbba5a6ebe930935a5425a3f5c52ed99992f91
2022-02-08 11:29:04 +03:00