Bug 160412 - "Execute SQL Statement" syntax highlighting inserts black text on black background in dark themes
Summary: "Execute SQL Statement" syntax highlighting inserts black text on black backg...
Status: RESOLVED DUPLICATE of bug 155761
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.5.5.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-29 01:13 UTC by Mio Taalas
Modified: 2024-04-02 03:29 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mio Taalas 2024-03-29 01:13:31 UTC
Description:
If using a dark theme, SQL statement syntax highlighting is messing up some characters (like quote ' and double quote ") and turns them black against black background and thus they cannot be seen. This seems like an issue with how syntax highlighting works and is not respecting "Application Colour" settings properly in all instances.

Steps to Reproduce:
1. Set Base Appearance to "Dark" from Options -> View -> Dark
2. Set Application Colour Scheme to "Automatic" and "Dark" from Options -> Application Colours
3. Open "Execute SQL Statement" from Tools -> SQL...
5. Type in a single quote ' or double quote ", and see how the text turns/stays black and now it cannot be seen from the black background.
6. Insert multiple quotes or double quotes in a row and see how they come back to something visible.

Actual Results:
Regardless of settings in the "Application Colours", in some cases, some characters stay black and thus cannot be seen on dark background. Especially quotes and double quotes.

Expected Results:
SQL syntax highlighting should respect the text and highlight colour settings in "Application Colours" properly.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-GB
Module: OfficeDatabaseDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: yes
Comment 1 breadsathwik 2024-03-30 03:14:52 UTC
Hello Mio,

Thank you for reporting the bug. I can confirm that the bug is present in Base. The bug occurs with many different characters, although sometimes they appear visible when typed in a row.

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e939685f9c6918830bd3097062790bfccbce937e
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 2 breadsathwik 2024-03-30 03:15:28 UTC Comment hidden (obsolete)
Comment 3 Stéphane Guillou (stragu) 2024-04-02 03:29:53 UTC

*** This bug has been marked as a duplicate of bug 155761 ***