Bug 162678 - SQL dialog: Colors not readable in dark mode
Summary: SQL dialog: Colors not readable in dark mode
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Rafael Lima
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Dark-Mode
  Show dependency treegraph
 
Reported: 2024-08-29 08:22 UTC by Heiko Tietze
Modified: 2024-09-04 20:04 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot with KDE/Breeze Dark theme (43.35 KB, image/png)
2024-08-29 08:22 UTC, Heiko Tietze
Details
Screenshot showing Basic IDE and SQL editor with the same colors (116.75 KB, image/png)
2024-09-04 20:04 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Tietze 2024-08-29 08:22:41 UTC
Created attachment 196083 [details]
Screenshot with KDE/Breeze Dark theme

The strong dark SQL syntax colors don't work on dark themes. Changing it at Application Colors has no effect.
Comment 1 Rafael Lima 2024-08-29 11:09:16 UTC
Yeah... that's bad.

I'll see if the strategy used for Basic themes can be applied here as well.
Comment 2 Heiko Tietze 2024-08-29 14:29:51 UTC
We have a section SQL in the app colors... but it's not effective.
Comment 3 Rafael Lima 2024-08-29 14:37:08 UTC
(In reply to Heiko Tietze from comment #2)
> We have a section SQL in the app colors... but it's not effective.

Are they not? I changed the SQL colors in the App Colors dialog and it works for me.

Tested with

Version: 24.2.5.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 4:24.2.5-0ubuntu0.24.04.2
Calc: threaded
Comment 4 Rafael Lima 2024-08-29 14:39:17 UTC
Changing the colors also work for me on 25.2 even with Sahil's patches applied.

I'm on kf5.
Comment 5 Heiko Tietze 2024-08-30 04:45:33 UTC Comment hidden (off-topic)
Comment 6 Heiko Tietze 2024-08-30 05:04:37 UTC
(In reply to Rafael Lima from comment #1)
> I'll see if the strategy used for Basic themes can be applied here as well.
Perhaps this is the better solution. I don't turn the appearance into dark currently but respond on a dark system theme. Something for you, Rafael?
Comment 7 Rafael Lima 2024-08-30 13:59:52 UTC
(In reply to Heiko Tietze from comment #6)
> (In reply to Rafael Lima from comment #1)
> > I'll see if the strategy used for Basic themes can be applied here as well.
> Perhaps this is the better solution. I don't turn the appearance into dark
> currently but respond on a dark system theme. Something for you, Rafael?

Yes, I can take care of this.

I'll finish a patch I'm working, then I'll give this a try.
Comment 8 Rafael Lima 2024-09-04 20:04:46 UTC
Created attachment 196236 [details]
Screenshot showing Basic IDE and SQL editor with the same colors

The proposed patch unifies the colors used in the Basic IDE and SQL editor, which IMO makes the UI more coherent.

https://gerrit.libreoffice.org/c/core/+/172888

With this we can consider removing the SQL colors from the registry.