Commit graph

603 commits

Author SHA1 Message Date
Szymon Kłos
22371ec0c5 navigator: fix alignment of tree items
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib28be9f4b0a9d00eff6185172979bc68b3b6953b
2023-05-05 14:38:05 +02:00
Szymon Kłos
7ab66505aa navigator: full height in calc
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie3b1b40f039f5e4bbe3cf0791f1f9f60571d2128
2023-05-05 14:38:05 +02:00
Szymon Kłos
1897778c74 navigator: expand navigator to fill sidebar
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I95bcdedd027871f10dbc14e6763ab9f70e4a72ed
2023-05-05 14:38:05 +02:00
andreas kainz
24e2f6f78c mobilewizard button color fix #6263
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I68ac07c50759a2ea1bc7c3c5122b74eecb8d741d
2023-05-05 14:17:46 +02:00
Pedro Pinto Silva
30903fa6f9 Impress: Fix imperceptible active (current) slide border
- Make it bigger
- Also size is not enough, specially for slides that have backgrounds
  - Add white inner margin so there is a clear distinction between
- what is the slide preview (image) and its contour

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ifee386b98d74c937efa35c19551334482ec18632
2023-05-05 09:20:06 +02:00
Szymon Kłos
cae3598e0a jsdialog: don't create empty tabs container #6260
In dialogs we put tab list directly where tab control is placed.
We don't need special container anymore (setTabs is not used).

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9d26a64362ee2c6ae08b44bf2dc54baf7936d0d8
2023-05-04 10:47:24 +02:00
Gülşah Köse
bce7b97d65 Fix the position of dropdown triangle of uno button #6236
Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I49be20532bc921e1424b07cb8d96c3477461bf8e
2023-05-03 15:28:45 +02:00
Szymon Kłos
118d3e4064 Make sure treeview entry focus is visible
focused entry has a 1px border, make sure there is a space for it
in the treeview so we can see laft and right border

also make sure it works with RTL

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iae65811b7e1a2c74f47be1cea09607e48ef661af
2023-05-03 09:54:06 +02:00
andreas kainz
603f912d86 Dark Mode add color-scheme: dark setting
see https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ie563059174471d50b5f9a8e24d1f08b2540799c5
2023-05-02 10:22:20 +02:00
andreas kainz
a963987ff2 dark-mode use correct jquery-ui icons with data-theme value
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I9214fda63f6caea0a36ab8be7c26baf4e1c0f46e
Signed-off-by: andreas kainz <kainz.a@gmail.com>
2023-05-02 10:06:41 +02:00
Pedro Pinto Silva
9de01e11b6 Fixes Menu items hover color are inconsistent #6254
Fixes https://github.com/CollaboraOnline/online/issues/6254

Before this commit and with recent a11y changes generic btn hover
styles were bleeding out to multiple places where icon btns are present

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I3855d081595a2d3aa56e58137e21aba5d7bf8532
2023-04-28 16:46:34 +02:00
Pedro Pinto Silva
c4cafd4aff Fixes Impress: Some icons are missing #6249
https://github.com/CollaboraOnline/online/issues/6249
affecting some themes

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I3b0a796350243add9615615d569f3b480189cd29
2023-04-28 16:45:35 +02:00
Pedro Pinto Silva
27fddae9c6 Fix down arrow/triangle position in sidebar dropdown icons
before this commit the triangle was misplaced, under the icon instead
of side by side

(might be related to https://github.com/CollaboraOnline/online/issues/6236)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id8d118471dcb02b5bc79399a4319ee514af03c5b
2023-04-28 16:41:56 +02:00
Pedro Pinto Silva
9979a93e47 Fix listview icon sizes
icons or being set with a non 1:1 ratio, missing width in the css.
Also better to reuse the btn-size

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I55b005d83718da81d9a7a44193b6f9de7192d41e
2023-04-26 12:53:46 +02:00
Gökay Şatır
02616ed3ee Don't auto show the comment on Calc.
Wait for user to press Alt+C combination.

Set width for mobile comment containers.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I4e4b47ba8b0b2dc05edc3aec6e6836009ce07b05
2023-04-24 11:34:04 +03:00
Gökay Şatır
1edca8ee2c improve the positioning of the selected, collapsed and normal comments.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ib731630fce5dac03c5fde84d938047b74c18a98f
2023-04-24 11:34:04 +03:00
Gökay Şatır
2f77b3a208 Remove duplicate comment containers by removing JSDialog popups.
Test Calc & Writer & Impress & Draw and mobile views.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Id882cd8120f4839c29050d60f189137404f3a3ff
2023-04-24 11:34:04 +03:00
Pedro Pinto Silva
acc5e86468 Add additional column gap to all page widgets within dialogs
If the page widget (elements that end their id with Page) have just
one column this will not take effect.

Why: the grip-grap (for both columns and rows) of 4 px set in the
jsdialogs.css is enough for many cases but when we have a Page with
more than 1 column the 4 pixels is too small to distinguish the
different sections.

Dialogs affected by this commit: All with child content id ending in
Page. Examples of improved dialogs:
- File properties
- Char format
- Settings of Footnotes and Endnotes
- Paragraph (format)
- Bullets and Numbering (position tab)
- Page Style (border, Header)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iebe9f01b758f1af8b43317cdf01a44f74c70cc42
2023-04-18 16:24:43 +02:00
Pedro Pinto Silva
832a04608e Tabbed view: fix buttons occupying extra space
similar to d1991e177c
but his time addressing:
- outdated css rules (remove them). They are outdated because we
already have `.unotoolbutton.notebookbar .unobutton`. Plus all of the
with exception of `vertical-align: middle;` were being ignored
- Do not allow browser to calculate width and instead set the same
value as in height
- Move `vertical-align: middle;` to a better place

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Idb2de12365727d0ed2886729d9effbf36ede31ab
2023-04-18 13:59:49 +02:00
Gökay Şatır
7e7dcd318f Update jquery-ui.css to make the container's height reflect its content.
Create a new CSS rule to make tabs' content lower enough from the tabs' buttons.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I3354b93711f1e93aa9c97c31b3717cad7b917351
2023-04-17 14:02:39 +02:00
Pedro Pinto Silva
0906804b6c Tabbed view: fix button label alignment within tabs
with a11y we now have those labels set via <label> elements and thus
they are getting browser specific default style for line-height
- Set to the same line-height that they used to have before, when they were
<span> and were inheriting the line-height from <body>

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If9afa2217e5d357ea27b8e7fbb0d63f3acdee80c
2023-04-14 16:09:28 +02:00
Pedro Pinto Silva
d1991e177c Tabbed view: Fix tab content being filled with extra white space
This was introduced with the a11y changes (button is getting
browser default padding style)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic648cedc1d3c72e0ae53e8bd244f1a04da868d8b
2023-04-14 16:09:28 +02:00
Pedro Pinto Silva
58bb4b9380 Sidebar: Remove browser's style padding that comes with <button>
Before this commit buttons were being generated with padding
this is not needed ( we already have safe margins applied to
the parent -> 'unotoolbutton' )

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4f1b4328131550d906cde3328c7de02daffd76a1
2023-04-13 09:18:52 +02:00
Pedro Pinto Silva
00375b61e6 Fix button ration
Before this commit we were setting buttons in places such as
the sidebar with weird ratio (not 1:1) this might lead to problems
when aligning, adjusting gaps. Better to adjust gap or margin if we
need bigger spaces in between

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id60cd6353de2ace2a066c0d1624000a09f0ca98e
2023-04-13 09:18:52 +02:00
Pedro Pinto Silva
557c336d0d Set missing dimensions to sidebar button images
- re-use btn-size variable
- make it clear that this set of rules is intended to sidebar elements
  - Improve selector (more clear and so it doesn't target other
    elements outside of the sidebar)
  - Move it to jssidebar.css file

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib03c412a1e05fd6ed315f58a70486f14eaf5b9ea
2023-04-11 16:13:01 +02:00
Pedro Pinto Silva
8d49e0cff5 CSS refactor: Fix duplicated & outdate px across light/dark modes
Do not place px in light or dark mode css instead use the shared
cool.css :root for that
- This avoid outdated values in the future
  - There was already one like that: --annotation-input-size
  had different values between light and dark mode

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5cd95a36e160003101f6f92108bb5244bfafcdd4
2023-04-11 13:01:54 +02:00
Pedro Pinto Silva
70a5ec53aa CSS Refactoring: one btn-size to rule them all
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iedac492e206e15a1aad65e07dc8cdc3d95a4a488
2023-04-11 13:01:54 +02:00
Pedro Pinto Silva
52fdec0014 Remove unnecessary flex and sizes for notebookbar-shortcuts-bar
Since we have change the generated HTML and now we have proper buttons
and img inside of them, there is not need to resort to this methods
since the img will automatically be centered aligned within its button

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I944f5c677c6d79f2f28645e4e8d081868f094262
2023-04-10 13:09:47 +02:00
Pedro Pinto Silva
bd03ab04eb Fix notebookbar button sizes and shortcuts bar
After accessibility work we need to change how we target those
and also we need to revert that `height: 100%` and replaced with
24px so we can know for sure how much th element will occupy
and to safeguard for cases when the svg is bigger

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia4102ccc5c58d4807d8b05d360342c1ea7128c3b
2023-04-10 13:09:47 +02:00
Gökay Şatır
54b9040909 Emphasize underlines for access keys when alt key is down.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Idcbca41fbc998b468eb807f35dcd4deff928fe8e
2023-04-07 19:10:51 +03:00
Gökay Şatır
be04111173 Turn div elements which has button role into buttons.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I60cebd1b02fdc9dc9e5f8a9b57d40b279b085a99
2023-04-07 17:57:24 +03:00
Pedro Pinto Silva
44a945d817 jsdialog: center radiobuttons without using exact units
This is a follow up on f9ad2ea3c3
with Change-Id: I1c200f2208b4f762d01dc6dd85459dbedce7b03e . It
leverages the flex added there to align and justify items.
What it fixes: Radio buttons not being aligned from the "left"
side and behaving slightly different in terms of alignment
if anything else changes around

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I9cb6f24c16603f40acf797c6b68d4305f38cdc58
2023-04-07 11:03:56 +02:00
Szymon Kłos
6f4a3b7206 jsdialog: auto align images
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idda9b32c0056f637dfb0a304ec26c7db74b09d95
2023-04-07 11:03:56 +02:00
Szymon Kłos
c04be7e069 jsdialog: gap in grid
to make some space between elements in grid

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I5379a1a7fd96cb1fe351cb5b52ce1433eaa7eb53
2023-04-07 11:03:56 +02:00
Szymon Kłos
e7aef3ae03 jsdialog: spinfields and listboxes equal width
they will be aligned to the grid size so look more unified

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4900e7d4005d172226c23919505702f6926260b7
2023-04-07 11:03:56 +02:00
Pedro Pinto Silva
a009c43ee9 Remove unnecessary !important from ui-tab
Target .ui-tab instead of .ui-tab-content

.ui-tab-content doesn't exist anymore, we can safely remove it
from CSS

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I17df0fb9de73ffe8665291d9dded8715bed9963c
2023-04-05 16:12:21 +02:00
Pedro Pinto Silva
37f9453634 Tabs: Don't create button inside of a button when one element suffices
- Don't create empty parent button just to have a another button
inside
- Update CSS so the text rules are applied to the button's text

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7f3a54a131a7a44109789a6612af8047963d8e7b
2023-04-05 16:12:21 +02:00
Szymon Kłos
4e534a71d2 jsdialog: use labelFor property for labels
also convert p elements into labels

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1c24f14671edf8d5e63c21a8b769c29af22737ae
2023-04-04 10:45:19 +02:00
Szymon Kłos
9d3d0cdee7 jsdialog: make tabs accessible using keybaord
This changes tabs into button elements so they can
be switched using keyboard Enter key. It's also better
from a11y point of view

Styles has to be !important to override button styling

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia4ced59544be18ae79d41b4f837eeb31ab80b8ef
2023-04-04 10:12:20 +02:00
Pedro Pinto Silva
c7e1fd6b7d Fix regression from commit 51bb1d3
the commit 51bb1d3 with the following change-id
I16a5df46bced608952c22bf979808bc735645366 introduced incomplete
CSS rule, rendering the whole css file invalid

So we should add back the rules and just remove the vex classes
but and upon further investigation button are already inheriting
font-family from jsdialogs.css: .jsdialog-container .ui-dialog-content
so we can just remove it altogether.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iab42230efc7341e8967ce776f0d3decf41655ba6
2023-03-25 11:36:20 +01:00
Pedro Pinto Silva
4fa4ff8c93 Revert "made bigtoolitem appearance bigger than icon with inline labels."
After reading Rizmut's commets, we should probably revert this for now
at least until we decide on the icon size while avoiding bluriness

This reverts commit e6782d6b5d.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
2023-03-25 11:33:54 +01:00
Gökay Şatır
260cbed5d3 Remove vex from code.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I054977b5c71364c59c7f1fdd1f5d691380951ebb
2023-03-25 07:03:05 +03:00
Harsh Gohel
e6782d6b5d made bigtoolitem appearance bigger than icon with inline labels.
Signed-off-by: Harsh Gohel <harsh22gohel@gmail.com>
Change-Id: Ie4eead1f20fb183b2f5c48aee4fe1f72fa7b12f1
2023-03-24 13:13:52 +01:00
Pedro Pinto Silva
3dc32f30f6 Fix main tabs text styles on tabbed view
Tabs were changed to buttons and thus we need to readjust the CSS
so text color and others are correctly applied to the text

Also add :not exception so the tabs are not styles as regular buttons

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I1bc1681e86f17ee7afb435f7c3fc099b80abac2e
2023-03-24 10:28:49 +01:00
Pedro Pinto Silva
311527b22e Set box-sizing for sidebar and notebookbar icons
This makes any resizing or position easier
and it's what is expected from "buttons" (it's the default value)

and those icons are buttons even if the html elment is somehting else

Bottom line: better to account for any border and padding in the values
we specify for width, height, border and padding. This makes sure that
the content box shrinks to adapt to those values.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I39af02f983611bc751e764c26d13d955b7774928
2023-03-23 15:55:51 +01:00
Andras Timar
7c0f2ca606 RTL: flip the arrow of context menu's submenu
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5ba0b805d872c374e4e2cfac59a5730008f5bbe3
2023-03-22 19:40:49 +01:00
Pedro Pinto Silva
a2961077f6 jsdialog: Improve cosmetics of Find and replace
- Make sure the grid columns of 'Find' and 'Replace'
share the same minimum
  - the maximum parameter in minmax function (so min-content) is
    ignored when that value is lower than the min value but it is
    there for when the language has quite long 'Find' or 'Replace'
    making that max width increase according to its contents
- Remove extra margin from checkbox so it gets aligned

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ica38b407f2a5936e3657dc067ac0658ef5b8aeed
2023-03-22 13:52:45 +01:00
Gökay Şatır
51bb1d3aa7 Remove unused vex definitions.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I16a5df46bced608952c22bf979808bc735645366
2023-03-22 07:49:07 +03:00
Gökay Şatır
ee4c9e5fb6 Turn tab buttons into button elements from span elements.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: If418a3d50da2d66e17277e64adc462b9a111816c
2023-03-21 17:22:19 +03:00
Szymon Kłos
adebee022e jsdialog: keep correct structure with hidden elements in grid
Don't show scrollbars for hidden content.
Affecting data -> Sort and data -> validity dialogs in calc

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3124d921ef7819f274e9f583a605e63b66722388
2023-03-21 19:32:06 +05:30