Commit graph

1004 commits

Author SHA1 Message Date
Pedro Pinto Silva
c5eab84ab8 Freemium: Fix sizes for Classic and Mobile
When on mobile do not rely on background position and instead add
img element so we can properly resize it and adjust it:
- Less in your face
- To not disturb or overshadow the actual active elements

When on Classic mode:
- Hamburger items: Use smaller lockers so to do not get in the way
of reading the actual item label

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I46218254a975b3a70d1e4c03eb1795d87f3861c9
2021-08-06 17:21:04 +02:00
Pranam Lashkari
fc9705f0d0 final freemium patch to cover all the UI elements,
specifically more focus on the top toolbar in classic mode

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I33eebe79addebe3acfcea4d20912cc31b759ffce
2021-08-06 17:21:04 +02:00
Pedro Pinto Silva
22b4595e46 Toolbar-up: avoid adding extra padding on the left
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7a36f0a50b2e8867e18744270bb6d84d6c5a917b
2021-08-06 09:48:00 +02:00
Pedro Pinto Silva
3d8507fab4 Busypopup: Center SVG spinner
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I79e15a80efc54549875a8736846853afa53e230d
2021-08-06 09:47:14 +02:00
Pedro Pinto Silva
3e38ec9b7d Synchronize map with TilesSection: Fix CSS
- Fixes map z-index so annotation can be have higher z-index
- Now map and due to the latest changes introduced in:
8ca57fad3344f6da1b42158944bf9903f0ac528b we cannot use
container's border-top as our bezel divider
  - Elements such as annotation need to go under
  - So Fix toolbar-wrapper to use bottom border
- Notebookbar: Fix toolbar-wrapper background-Color which
was being set as transparent and thus elements passing under
were being visible
- Ruler: fix cropped ruler (was not going full width)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8778619da43c51d1994dbb12d1112d4f1d42ff43
2021-08-05 11:09:11 +02:00
Pedro Pinto Silva
189fa6af7f Mobile: jsdialogs: Text import: Fix separator btn position
Depends on: https://gerrit.libreoffice.org/c/core/+/116265

Fixes checkbutton (Use separators) position by placing it
before divider label ('separatoroptions') thus, improving readability. User
can now see it clearly that all those separator options are related
and hierarchically under a main option: #toseparatedby.checkbutton.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I97b133e3e873a76ca75290728adaf1a45c9bcece
2021-08-05 10:39:00 +02:00
Pedro Pinto Silva
a39a16cc24 Make it clear when unotoolbutton is disabled
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I666978fa301ba977b4cc3fa8a57a56754d206f6a
2021-08-05 09:29:09 +02:00
Pedro Pinto Silva
2d5d34be2d JS Sidebar: Fix textorientbox (calc)
Do not show radio buttons in this case since we have images
for each option (radio images and  textorient options images
were overlapping ) also fix width and add hover state

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7e3d8ef4da400024137d0c9207c67807ded281c5
2021-08-05 09:29:09 +02:00
Pedro Pinto Silva
6d13b5f080 JS Sidebar: Do not add extra margins to pushbuttons
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I72ea2b2b6ee711842128590d9bf096810d16ffca
2021-08-05 09:29:09 +02:00
Pedro Pinto Silva
95ee1373a0 JS Sidebar: Impress: Fix drawing-area width
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I9b0a59a2da75262ec0b89c978d990fc4759a835a
2021-08-05 09:29:09 +02:00
Pedro Pinto Silva
54d63c12af Vex dialogs: Close btn: Fix position
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I66ca8f579c622b19bf72293587ef8f6e660ef200
2021-08-04 14:44:21 +02:00
Pedro Pinto Silva
a8c118ca48 Notebookbar: Fix bigtoolitem size and keep ratio
Some bigtoolitem icons (namely About) were being skewed and others
were being set at a smaller size to what they were supposed to have.
Fix it by adding height value

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5ec375358e9dcf46a6b8b17570bea78963e188c8
2021-08-04 14:04:59 +02:00
Pedro Pinto Silva
cf0c6cc3a6 Snackbar: Remove unnecessary CSS important rule
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic1d91ae036f71902df3da03d8ed32533e7762949
2021-08-02 13:57:27 +02:00
Pedro Pinto Silva
ca992a5c35 Snackbar: label: padding and space between button
- Inherit common styles across mobile and desktop
- Set Different padding between Desktop and mobile

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iae158c83eb693ea5a77cb0e532f7db8a80567130
2021-08-02 13:57:27 +02:00
Pedro Pinto Silva
066b4d30c1 Snackbar: Fix border-radius on desktop
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie3b56c30b942ea14cf029ed3e1db312b601084e2
2021-08-02 13:57:27 +02:00
Pedro Pinto Silva
2bd1ce2652 Snackbar: label: style it differently if there is no action
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I97c1f86fd4ff33cec165d37048cacb18c550e300
2021-08-02 13:57:27 +02:00
Pedro Pinto Silva
b7f64082fd Snackbar: make sure no text transform is applied
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7562acf27f76d3ebc5841596d4b126f4ce7d388d
2021-08-02 13:57:27 +02:00
Szymon Kłos
396d4d96fb snackbar: show when disconnected and on desktop
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib8e5a5f32dd04b34da7977fe5b5928a80e81f1f4
2021-08-02 13:57:27 +02:00
Szymon Kłos
fb17494b3f snackbar: implemented for mobile
with example of usage: replaced alert when server was reconeccted

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia0f72b118a6ad7c7072bae41f452cc1a70b9aa84
2021-08-02 13:57:27 +02:00
Szymon Kłos
d3f3cf2cc5 Rename mobile popup to be more general busypopup -> popup
we will use it not only for busypopup

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I775d5af3838d2e6caf6bdbda9ff4864b919eb34b
2021-08-02 13:57:27 +02:00
Pedro Pinto Silva
55c98a414b Mobile: busypopup: Adding snackbar styles
Snackbar element is intended to replace all w2ui .lock
dialog (alerts) with or without button

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iad836d0dc094be01ad265492eaacf0a8dbf8a06d
2021-08-02 13:57:27 +02:00
Pedro Pinto Silva
6adf6f18b4 JS Sidebar: Style expander and its dialog triggers
- Reduce icon size
- Fix alignment
- Use specific icon (also used in core) as dialog triggers

Simplify expanders ("title bars") by removing icons based on uno command
(that trigger dialogs) so to:
-  Avoid user confusion between those icons and the similar icons from
within the group
- Improve information hierarchy (dialog triggers icons should not be at
the same level as the other action within the sidebar)
- Use a common symbol (same icon) to communicate "Open dialog to see
more actions"

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib060dda2ba1584ce4e0ac132617a4b2900df42d7
2021-08-02 12:49:41 +02:00
Szymon Kłos
7244cda069 jsdialog: fix buttons alignment (update)
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I25f85163e1dbdedbff4cdbf29f7a98e30d145cf1
2021-07-28 15:24:22 +02:00
Szymon Kłos
72ac57cce5 busypopup: fadeout also when showing new popup
- be sure overlay will be removed
- show fadout effect also when closing old popup and showing new one

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6565c96d664a2a289a9950cc2a6b60677872a3a9
2021-07-28 11:45:44 +02:00
Szymon Kłos
05f684990e jsdialog: fix buttons alignment
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia5dbe5099bc65c01ab43eb720d676e4fd57c63f2
2021-07-28 10:48:45 +02:00
Pedro Pinto Silva
e2168e96aa Spreadsheet mobile: Remove styles and fix plus
- Inherit as much as we can from desktop
  - Remove unnecessary styles
- Tab container: fix position
  - No need to add left padding instead let the
	plus icon fix to deal with that
	- Increase plus icon touchable area (was quite
	small)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic8269e5da63406b7f19f0d92ff50f1258f460d7a
2021-07-26 16:30:50 +02:00
Pedro Pinto Silva
9424431d8d Spreadsheet tabs: remove unused padding n margins
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I1918e3c87bfd8aef2799e3dde3b9b4267b5d96d8
2021-07-26 16:30:50 +02:00
Szymon Kłos
0d16c274a8 mobile-wizard: hide duplicated paragraph images
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I5977aee554daf022fa144d38cf022bc40eef0675
2021-07-26 15:39:07 +02:00
Pedro Pinto Silva
ccaa206437 Spreadsheet tabs: Fix dimensions after canvas changes
Update tabs and its parent after:
9f3b72aa6f
2577342e1b

- Fix padding and margins
- Use border-top instead of faking it via shadow
  - border shadow was not being displayed full width
- Make sire spreadsheet-tabs-container is transparent
  - Avoid hiding any element or border
- Gave up on trying to have selected tab looking like a tab
and thus without border top and taller. The code around is
proven to be changing constantly plus we are not gaining
that much of a benefit there. On top of that by keeping it
with same shape as the other tabs we avoid possible problems
with the top of the border of its parent.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I45ce6ed534afe4b264ae5aa0ef8f40f606ff5523
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
b6854ec35d Listbox: Fix inconsistencies between sidebar sidebar and
toolbars. Make listbox (combo box drop-down list) similar
with the same: bg and add CSS var.

Also on classic mode: Fix listbox height on toolbar up
- Keep it at 24px so to be the same as the neighboring items

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib4deaa5beec6cebf8d966f15a9e091a298d8b749
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
700f6ad3b6 JS Sidebar: Fix inconsistent wrapper width and fix mobile glitch
- Makes sure sidebar is always the same width (when selecting objects
etc sidebar was changing)
- Fix mobile glitch: on  load and even during readonly mode sidebar
was first flashing and then appearing

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I9ebf306d27430a2c9a6c7105a0dc178020ef12cc
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
294241fb67 JS sidebar: Fix checkbutton font size inconsistency
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ifc7284af413b3807903d91ea9c89306563e15ad7
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
80c7ffe541 JS Sidebar: Fix hover state and faulty margin
Adds margin to toolbutton and not its child:
- A margin was being added to the img element which in turn
was being visible when hovering it

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I9e668260a53d7239c00b8786803245f30ea7f83b
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
df7c38c443 JSdialog: ui-listbox: Fix arrows position
- Adjust left position and
- Makes sure option is not getting weird values from web browser

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia753baf8066914543388c80827b2fe4c8ed26c3b
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
a832507f00 JS Sidebar: expander: fix text color and size between states
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ice39be922f4997e111ac7947c4526871808b2c8d
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
34d1bd2f66 Fix Treeview: invert chevrons and increase contrast
Fix inconsistency between ui-treeview-expander and ui-expander
- Expanded: pointing down
- Collapsed: pointing to the right
- Also make sure the width doesn't change between states
(use 'V' in both)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib4b72d6f8acca33fcb67981ff9b6fd8095012ead
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
a6ebc1e570 Fix borders around JS Sidebar (doc container etc)
- Fix Borders
  - Make sure the borders that divide the document container and its
	surroundings are always visible at all times not matter what is open
	(sidebar) or what is visible (status bar, ruler)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Idea765f4438981af66bb760f25f7c553be7da728
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
5542a85aec JS Sidebar: No need to use negative margins reduce size
Initially introduced in
c983a65bbb

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4ddfc8a81457087fb0cd60d96655d3156a20ebd9
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
8f5212b0f7 JS Sidebar: Remove hard pixels add border and hover status
- Dropdown (select element aka listbox) Do not use min or max widths
- Use CSS vars for text colours
- Add hover status to buttons
  - Force to also add id references since these lack the unotoolbutton
	class

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I480deb651a83b44a8a5e4170e105b4dc2e900ec5
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
227731aea7 JS Sidebar: Fix wrapper padding and add border
Plus make it start from the top and ending at the bottom

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If8c89a248c467e50186a82bc191200a60e2823e1
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
d1f4117b30 JS Sidebar: Fix fonts
Via CSS var to make sure we use them consistently throughout
jscomponents. In some browsers it was being set with serif specimen

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I418ad3a313c394e526b6e4e1c46ebe3616212d40
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
36f95f71d3 Toolbar-down: raise z-index to be above document container
Toolbar-down was being covered by #map
- Set toolbar-down with the same z-index and ruler since both should be
above map
- Update readme

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic358fb5f7bd722806cf22fdad0289f8a54fa6e1e
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
5519835ec8 Spinfield: Mobile rules should not affect sidebar
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I40940cc10a89f5fe75e95cee08d0bdb23637d2f0
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
ec64586629 JS Sidebar: Style and layout fixes
- Sidebar parents: be sure it's container childern is always full width
- Sidebar parent: Fix margins vs paddings
- Expander: Decrease color contrast so to avoid to be in the way of the
actual components
- Fix expanders (arrow) position and paddings
- Use CSS vars
- Fix and style listbox and spinfield to be slimmer and more compact
than the regular ones (crucial here to effectivly use space)
  - Some of these things should be ported top the general jsdialog css

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I50def4b41144d56a3cc2de41b3ed00ed550fa74d
2021-07-23 17:17:01 +02:00
Pedro Pinto Silva
775800ba91 Notebookbar: Center save icon
Ensure 0 margins

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I843e9a9a4e178611ec216b0e2f1dc4c49bcce464
2021-07-22 14:21:58 +02:00
Gökay ŞATIR
3b80336b75 Hamburger menu icon visibility: This issue is master branch-only.
Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: Id7765467ca1c144d2cd9cf04adfd2e39823dac08
2021-07-20 13:43:22 +03:00
Gökay Şatır
37e39283ab Impress Mobile: Fix slide sorter size.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I1b60bf2688a4a3fdeec535d933f27876db07190a
2021-07-20 13:43:22 +03:00
Gökay ŞATIR
81d5d58ceb Main-document-content: Prevent over-sizing.
Set min-height property to prevent exceeding the available size.

slide-sorter: Set max-height to prevent over-sizing relative its parent.

Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: Ib8c50bc9f6f6ac4311cefa3b0e016da728efe95b
2021-07-20 13:43:22 +03:00
Gökay ŞATIR
034b594bdd Impress: Adjust mobile edit button position.
* Remove 3px margin of read only view.

Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: I8f72ea952e2bc734048fe4e02e6ba1784acb1369
2021-07-20 13:43:22 +03:00
Gökay ŞATIR
c429815777 Impress:
* Use lineHeight rule for centering the elements on mobile.
* Use parent element's rules for setting the styles of img and preview elements.
* Disable mobile-slide-sorter. It is not in use for a long while.

Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: I06517467f269669c70294fb5a4dd0960eb16feb5
2021-07-20 13:43:22 +03:00