Commit graph

11 commits

Author SHA1 Message Date
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
Pedro Pinto Silva
f09f743636 Dark mode: Canvas, get directly the css var property value
- Get directly the particular css var that we want instead of on relying on a container
  - This makes things easier to maintain in the future
- Use a new --color-canvas instead of relying on --color-main-background
  - color-main-background is used in many other places which means
  that if we want to have some particular UI brighter or darker it
  would affect the canvas. Better to use a different/new css var for that

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I3d7d3ba188e96080d9f6f814a5c46f85ea378142
2023-06-05 12:13:47 +02:00
Parth Raiyani
058c96954a fixed cursor background in dark mode
Signed-off-by: Parth Raiyani <pmr642001@gmail.com>
Change-Id: Ie545ef51462b23a5abb3c389b5acf4cd6d118e45
2023-06-02 09:16:36 +02:00
Pedro Pinto Silva
262669a237 Dark mode: fix shadow color
Use dark shadow

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0f8bc58470d3c0e5842a4bd293920775da187399
2023-05-24 10:29:29 +02:00
Paris
584017eeba Revert "Dark Mode add color-scheme: dark setting"
This reverts commit 603f912d86.

Signed-off-by: Paris Oplopoios <paris.oplopoios@collabora.com>
Change-Id: I2ab3ae372f1d64598d39a4b450d621f0ea75a9ae
2023-05-09 21:54:38 +03: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
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
Christopher Gladman
11bb035634 Add a dark mode toggle
This adds a dark mode toggle to both user interface views (compact and tabbed view).
In addition, this code fixes the problem that the initial theme did not load properly
based on settings. Equally, the Toggle in Notebookbar will now appear
"selected" when pressed.

Signed-off-by: ChrisGlad <chris.gladman2004@gmail.com>
Change-Id: I0e0c282cec24d9bb7fbfc4131ba3875976cea5fd
2023-03-17 17:34:05 +00:00
Pedro Pinto Silva
585a438944 Revert "Revert "Add color-scheme-dark.css support""
This reverts commit a864d41c09.
Because we can now work in this WIP feature in its dedicated
feature branch.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
2023-03-17 17:34:05 +00:00
Pedro Pinto Silva
a864d41c09 Revert "Add color-scheme-dark.css support"
This reverts commit 08b1d4b1e78fc2560d554b5935452ebb2d025214.

Better to avoid backporting WIP dark mode at least until
issue number #5054 is fixed

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id4fe8582fdebe9ad078ef5eaa7ba6be655cfb941
2022-08-04 15:26:47 +02:00
andreas kainz
592d27a409 Add color-scheme-dark.css support
@media (prefers-color-scheme: dark) setting
is available by use color-scheme-dark.css
instead of color-scheme.css

sure the scheme need some update
but there are other open points like
use dark color for document
use dark colibre icons

this is only the .css change
so no full dark mode update

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I5c2adcbb75583a952f419af507d7cfe5c1343e3c
2022-05-03 10:40:35 +02:00