Commit graph

741 commits

Author SHA1 Message Date
Pedro Pinto Silva
9a6b877190 Snackbar hasProgress: Set to double column grid
Use new id for snackbar with progress and style it

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I24a1647f0f629b7b079aa65601f4309c339a06e8
2023-10-11 08:29:43 +02:00
Pedro Pinto Silva
37bc01a730 Snackbar: fix pushbutton padding
Before this, the padding-right was being set to 0 (probably to save up
space) but this is not the way to do it. It looks weird when the focus
is set to that button.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib60b32cd9d0f5f42444cadef121be32c15941483
2023-10-11 08:29:43 +02:00
Szymon Kłos
c247b20509 snackbar: make progress visible
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3f1022c4680d749f80116b7480e58e14e2bce5b1
2023-10-11 08:29:43 +02:00
Szymon Kłos
27c72ca4d0 clipboard: set equal width for progress dialogs
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib0dde8d856c0358d9c5ec7ecb128b458221bb70f
2023-10-11 08:29:43 +02:00
Szymon Kłos
9d65a03e5b clipboard: complete dialog shows 100% progressbar
Reusing progressbar dialog allows us to show it's the
same process for the user. So even if it is instant he
will see 100% progressbar and that button become enabled.

Create new file for functions which manipulate existing
modal dialogs.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I765483b940f47bdfbcf8a488ea7d0ab9569ccda9
2023-10-11 08:29:43 +02:00
Szymon Kłos
b412adaeb9 snackbar: limit to 80% of screen or wrap
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie25794f55d9ccaf502d9189c096c8029a3698226
2023-10-11 08:29:43 +02:00
Szymon Kłos
585e00a1ee snackbar: vertical alignment of items
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia1fb616170497ad32e2db85111a7dc5b07e90f5d
2023-10-11 08:29:43 +02:00
Szymon Kłos
8c7b638bb8 jsdialog: move progressbar widget to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3a489340df101d7a672762a7a259cd92514f5f53
2023-10-11 08:29:43 +02:00
Pedro Pinto Silva
e2b64a71a7 CSS: Removed unused document-signing-bar
We no longer create that w2ui bar and we also have removed any element
with that id or parent from cool.html.m4 with that name. So, this can
be removed.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I26c9e66de44fe8a8f8ad785031c640d32960a350
2023-10-05 15:07:24 +02:00
Pedro Pinto Silva
99b423eac2 Tabbed: Calc: Scroll indicator is 3 pixels misaligned
The scroll indicator set with an absolute position ends up being
positioned in the 0 y coordinate. Since the wrapper has a top padding
of 3 pixel it means the scroll indicator is not 3 pixel off.

Also, and since these measurements are set in the CSS (the height of
the wrapper and the padding of the other wrapper), better to just move
everything to the CSS and avoid unnecessary inline styles.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Icc1e51b2590ee27b318f9e4c3d550183b08cb49d
2023-10-05 11:36:14 +02:00
Szymon Kłos
18c02410e6 mobile: fix snackbar button position
This fixes regression from:
commit 07c3538589
mobile-wizard: create separate window container

The snackbar with action button like "leave feedback | ok"
or "we can reconnect | reload" had buttons below text
what looked bad and it was not possible to click

We introduced separate windows inside main
mobile-wizard-content container which have class
.mobile-wizard-content - let's use the same rules
as before for popups

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I506aaf34741fb1ff879c0c5c44a5958d6be9912c
2023-10-02 14:55:23 +02:00
Szymon Kłos
1f11d328a1 mobile: fix snackbar text
This fixes regression introduced in:
commit b6c26bee91
Mobile sidebar header layout #6861

- remove additional top border
- make line height regular so text will fit into snackbar
  without scrollbar

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I72a1e7121d58a7583bd4efce9728c25231c7d8de
2023-10-02 14:55:23 +02:00
Pedro Pinto Silva
b7a4b13970 Fix main-nav elements being treated as generic primary, secondary btn
With the recent (and very welcoming) changes to steer away for generic
elements such as div and instead use more appropriate/semantic
elements such as button we ended up applying new rules to main-nav
buttons. These rules were only intended to be apply to classic
buttons (rectangle + text inside). Result:
	- userlistheader even if invisible was getting a background
	on mouseover
	- all <button> elements were getting extra padding and margin

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic774fd342df5483cd7210b85c4847688914b28f2
2023-09-29 10:26:23 +02:00
Pedro Pinto Silva
0a7e0fe65d userListHeader: remove legacy padding and margin
userListHeader, element present in compact and tabbed view to display
users present in the document (avatars), seems to suffer from a odd
alignment and duplicated usage of white space.

Best to remove any hard coded pixel that seem to come from legacy css
and rely on flex if necessary. Also the surrounding elements (doc name
and sidebar icon) already have save space around so they will never touch

on top of that this was having different result than "expected" when
using a different RTL system (since we were not using logical css properties)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iab0869080231ac734c087afeee97d9cd0243030d
2023-09-29 10:26:23 +02:00
Pedro Pinto Silva
d0b4229aff Tabbed view: Fix main-nav for small screens
Make tab's size dynamic
 - Font-size
 Instead of using always a font size that looks nice in a wide screen
 but that  will look cramped and  without space in a narrow window:
   - change it's size depending on  viewport within a safe range
   - new css vars added and respective comment in the code
   - Also we use clamp css function but we also add a fallback for old
   browser using the generic calc css function
 - Padding: allow to get lower levels when the viewport is reduced

Hide document-header when the window is narrower than 800px
- this frees up space and also benefits tablet us case where user uses
2 apps side by side

Document-title bar
 - Hide document name if the window is too small. This makes it
 possible to fit all buttons without horizontally scrolling the main-nav
 - Note user can always access the rename feature by going to File > Rename button
 - Remove any hard coded pixel positioning and instead rely solely on
 flex layout

Main-nav
 - should always occupy (width wise) 100% of the viewport. We want
 always the far left icons be always at the end of the viewport

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I58843f40e21d26f955422d6159b5777144b684fd
2023-09-29 10:26:23 +02:00
Pedro Pinto Silva
86623afddd Fix tabbed view top bar not being scrollable sometimes
Before this, when using a narrow window, the top bar wouldn't be
scrollable until we would press the avatar list. Also when switching the
modes it would becomes unscrollable yet again.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I01b2afcb125a2addf9847e2581f9498105b54b00
2023-09-29 10:26:23 +02:00
Pedro Pinto Silva
9a116dd6d0 Calc: clone formatting cursor has misaligned hotspot
Before:
"When I use the "clone formatting" tool, I have to point the handle of
the brush icon to the cell I want to clone rather than the
brush. Logically I would expect to point the brush part to the cell I
want to clone, but because the handle seems to be the point at which
cloning occurs, I end up cloning the cell above and not the actual
cell I want to clone."

Fix vertical coordinate so the bottom of the hotspot is in the brush
and change the outdate comment WRT the png in question.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I69e0935542c068016366a26d8100866c23ca17dc
2023-09-27 19:44:54 +05:30
Gökay Şatır
5039aa4797 Fix "modified state notifier" visibility.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: If4feb0806ce92fadeb90f6676809bcbefc51eb24
2023-09-20 19:54:56 +02:00
Pedro Pinto Silva
c23d93357a Featurelock dialog (upsell): Fix layout and styles
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I18fc9d9b97a64be426d03744a5b707729447a1db
2023-09-19 21:56:52 +02:00
Szymon Kłos
fb79675c0f jsdialog: simplify intert hyperlink dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I44bae5fd01a6d4c099af46742eb2069b5b6db7ab
2023-09-11 09:48:25 +02:00
Pranam Lashkari
a022212381 annotation: autosave comments when lose focus without exiting editing
how it is expected to work:
before this patch, whenever comment is saved,
editing comment box(DOM elements) is deleted and
a new comment(DOM elements) is created when we recieve the data from server about saved comment

This commit prevents the deletion of the original comment box which is being edited,
if comment loses focus it is saved. If user explicitly saves the comment then it
follows the routine which were used previously.

Many checks were added to prevent comments from getting unselected(select means it is highliting the text in doc)
or getting collapsed

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: If24ccbcd7a0287b659f790db486ada5d17608a32
2023-09-05 16:35:45 +02:00
Rash419
52bbb7df9c mobile: fix icons not visible with branding
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7a3d430ddd96ccb3ea0605eb0a0f2523d66225ce
2023-09-01 17:50:48 +02:00
Rash419
a52bb5e193 fix: comment annotation table not aligned
- regression from 8379ae65dd713c30ac729ae10a2d78cfc98e9a6c

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I28edf882ce9efd586730a48a95f3bde555a63690
2023-09-01 17:26:07 +05:30
codewithvk
8533175bd7 Fix: hover states on disabled
Signed-off-by: codewithvk <vivekpatel7202@gmail.com>
Change-Id: I64d291b87ccfbcb7a48b020d1d89fb77cefd8a01
2023-09-01 10:55:12 +02:00
Szymon Kłos
faa0477332 jsdialog: combobox entries hidpi
we request entries with dpi scale factor to
generate bigger (higher resolution) previews

then entries are scaled down in CSS to keep
relative size to other components constant
but text become smooth thanks to bigger resolution

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I00c59be45a92667768385f7f70c1ccd8248095af
2023-08-31 12:56:10 +02:00
Szymon Kłos
5b221745cf jsdialog: mark selected entry in combobox
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iefd57b37d6afa4480b8c3a7c36be7ab4a7f1e84c
2023-08-31 12:56:10 +02:00
Szymon Kłos
2be200845d jsdialog: combobox dark theme fix
- invert colors of images in dark mode
- don't invert in style previews to show real effect

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2005cd068b3f9a636e24307a3035728f4e139379
2023-08-31 12:56:10 +02:00
Szymon Kłos
0b0e21f576 jsdialogs: add dropdown with custom rendered entries in combobox
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2c4b258fe37d1aef6c7de88443fc702bea60cbda
2023-08-31 12:56:10 +02:00
Szymon Kłos
4082e1e570 jsdialogs: custom combobox
Combobox will be real combobox (edit field + dropdown).
Adjust styling from old .select2 rules to our combobox.
Remove old code for select2 comboboxes in notebookbar.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id3ea16bcb004675cb7d5743f394ac432e74918cf
2023-08-31 12:56:10 +02:00
Darshan-upadhyay1110
7db8d225ff Add access-key functionality to open userlist.
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I7787aaa11e673f8701b9b94f85ce225c254e2ac6
2023-08-31 12:03:15 +03:00
Darshan-upadhyay1110
48007ccfe2 Fix: Mobile => insert list is misaligned #7137
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I6b82e30dc1a6a77c347963ec9d6e7cb81a86ee37
2023-08-31 14:26:06 +05:30
Rash419
f87230761d mobile-wizard: fix textarea remains white in darkmode
- also fixes the misalignment in cool-annotation-table

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I58db4c6918c3a36a230c6f9317ddf39c3361bb24
2023-08-31 14:20:53 +05:30
Pedro Pinto Silva
6ed9065bb5 Navigator: fix active element style on dark mode
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7f7e2d48eedf0f204acefadccb36764f553d65f5
2023-08-28 21:52:51 +02:00
Skyler Grey
2e07fcb1a3 Fix 'manage changes' dialog expanding infinitely
A regression in change ID I8551242fc2b987f00c67088caa0ed07ee8526a72
caused the manage changes dialog to continue expanding when new elements
were added, no matter how big it got. This would cause you to be unable
to see all the changes when there were a lot of them because you could
not scroll through the list. This patch fixes the scrolling, without
making the list area very small again.

Change-Id: Ib29fb161522773ea9893b7bc21d06aab19b74c52
Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
2023-08-22 19:04:29 +02:00
Szymon Kłos
ac8440fea7 jsdialog: add minimal size for treeview
Without it in calc -> insert -> chart treeview
for chart type selection was invisible / 0px width

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iaf28c4860adcd00591a638fa10838fe8719bee23
2023-08-16 09:16:51 +02:00
Rash419
639068e3fe impress: remove unused mobile-slide-sorter
- to show previews we use slide-sorter element
  and presentation-controls-wrapper as container

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Iaed0892779d5016a565d556955305317129edea4
2023-08-16 11:29:54 +05:30
Shehr Bano
e6a06eae1c FIX #7037: JSDialog: label vs textarea vs input field inconsistent paddings
Signed-off-by: Shehr Bano <shehr.bano@collabora.com>
Change-Id: I53494733c47b35d59133979c456665b4174e393c
2023-08-11 12:15:19 +02:00
Shehr Bano
1428888afc Writer: Fix to issue #6977, extends vertical space of ui-treeview in Manage Changes
Signed-off-by: Shehr Bano <shehr.bano@collabora.com>
Change-Id: I8551242fc2b987f00c67088caa0ed07ee8526a72
2023-08-03 18:37:58 +02:00
Pedro Pinto Silva
218583ce22 Tablet: Hide document file name input field
The input field is already being hidden for mobile. For Tablet and
with the increased amount of UI elements on the top bar best to hide
it also. Renaming the document is a quite rare used action when
compared to any of the other top bar actions (switching tabs, open
sidebar etc). Better to hide the #document-name-input when on tablets
instead of trying to fit everything (and end up obstructing tabs for example)

Tablet user can always:
- Use the integration (already used to do many other file manipulations) to rename the file
- Use the in-app Save as can still be used to save a copy of the current
document with a different name

----

Possible future improvements would be to add the possibility to rename
the file when using a tablet:
- Add menu entry and tabbed view button
  - Control.Menubar.js something like {name: _('Rename Document'), id: 'renamedocumentbtn'}
  - Control.NotebookbarWriter.js add bigtoolitem Rename Document
- Maybe in Control.UIManager.js add a renameDocumentBtn function that
  - Creates a JSDialog with document-name-input element + Cancel btn +
  OK btn
  - Ideally that input element would re-use the functionality from L.control.documentNameInput() -> Control.DocumentNameInput.js

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I968e806a4a9e0018b38b87fc249a57e5af099c78
2023-08-01 09:26:35 +02:00
codewithvk
8b5df0c4b3 Fix : Menubutton should have disabled state styling different
Signed-off-by: codewithvk <vivekpatel7202@gmail.com>
Change-Id: I1cd97503e0d3ca4333b11552ca3571093cf10bfe
2023-07-27 12:25:26 +02:00
Darshan-upadhyay1110
2ac7183e44 Add Left or right arrow on a tab label should switch tabs
- accessibility key features
    - focus on tab when press `Alt`.
    - move back and forth tab focus by ArrowLeft and ArrowRight
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Id8c8e2a8bcb57c90e0762dd3916b851fff8e0a6f
2023-07-26 10:24:13 +02:00
Pedro Pinto Silva
5aa5703885 Fixes #6946 and all unstyled kbd elements
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I09583d7c27cffc0f5b9722de1925977089bf832b
2023-07-24 16:30:02 +02:00
Pedro Pinto Silva
0e22c2a744 refactor: Toolbar down icons: remove unnecessary !important rule
If we set the initial backgrounds without `!important` then there is
no need to use `!important` for dark-mode (since we are already using
a more specific targe via data-them attribute)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I600629dfc0485edac6ff725f6278de1501e1c9a7
2023-07-19 16:02:12 +02:00
Pedro Pinto Silva
cfece73517 Don't add outline to ShowInfoModal that have no buttons
Large Clipboard  and document idle modals were being set with tabindex
0 allowing for manual user focus plus were being focused dynamically
for each instance:
    - Transfer all that (just once) to showinfomodal instead for the
    cases where we have buttons
        - This in turn sets the things to the parent (dialog itself)
	and not the subcontianer
        - Set tabIndex with negative value so, it only allows focus via
    code
    - This fixes the weird outline (focus) that sometimes would appear
    on sub containers of that dialog instances

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If40192e05c4b0e25e2ce71bc612ab64fc54a29ec
2023-07-18 17:32:10 +02:00
Darshan-upadhyay1110
fd630d427f Fix Spell checker js Dialog
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Idc0800eaa4ab751601bd34bba6c2e9cfef38de4d
2023-07-18 15:42:35 +02:00
Pedro Pinto Silva
7f2e5df037 Calc: fix document background. It should be white.
With c04c065edc we start to dynamically
set the canvas background. The problem is that for Calc cells do not
have intrinsically a background and thus what we end up to see as the
document background color is actually the canvas color.
	 - Make sure that when we are in presence of calc we set the
	 canvas color (clearColor) with the value coming from
	 documentBackgroundColor
	 - To make it clear: create a new CSS variable to be used as
	 background-document

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4c456e4aeea233609ee58684d967984dd8afd63a
2023-07-18 15:01:25 +02:00
Andreas-Kainz
b6c26bee91 Mobile sidebar header layout #6861
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I8c10857b0ca7e166b5f9364db9ea2a01e5acfffa
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
2023-07-17 10:20:52 +02:00
Darshan-upadhyay1110
ddef0ef881 Fixed Spellcheck dialog size
Set Minimal width for suggestions list
Added some padding for spell check text box for more readability

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I0fa5bb60ece88e4107408448a17378b526020784
2023-07-14 14:32:22 +02:00
Andreas-Kainz
e90586a098 DarkMode border icons use dark fr0x icons #4592
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: Ia09efa8530e04f571af4b2e1e7599215746be2df
2023-07-12 11:20:44 +02:00
Andreas-Kainz
f84105072b DarkMode checkboxes will be themed
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I0ffd594ba3e897a36c2caa8a5fe9aace9e04a63d
2023-07-12 10:06:00 +02:00