klogg icon indicating copy to clipboard operation
klogg copied to clipboard

How to change global background color and text color?

Open speeeeed opened this issue 4 years ago • 6 comments

I am using klogg 21.09.0.1165 on Windows 11. The built-in dark style is not looking good on Windows. So I want to customize the background color and text color of the main log view, but I cannot find the setting entry, is this feature supported now?

By the way, thanks for your great work!

speeeeed avatar Nov 25 '21 10:11 speeeeed

Thanks. Unfortunately, the colors for dark theme are hardcoded. I can make klogg read them from configuration file, that will allow some experiments with colors

variar avatar Nov 28 '21 18:11 variar

Starting from 21.12.0.1175 the dark palette colors are read from configuration file klogg.conf. Default colors are:

[dark]
ActiveButton=#303030
AlternateBase=#353535
Base=#282828
Button=#353535
ButtonText=#FFFFFF
DisabledButtonText=#757575
DisabledLight=#353535
DisabledText=#808080
DisabledWindowText=#808080
Highlight=#2a82da
HighlightedText=#212121
Link=#2a82da
Text=#FFFFFF
ToolTipBase=#2a82da
ToolTipText=#FFFFFF
Window=#353535
WindowText=#FFFFFF

If some color is not specified in configuration then the default will be used. To make colors appear in configuration file for the first time you need to change some settings to make klogg write changes to the file.

variar avatar Dec 12 '21 19:12 variar

@variar 21.12.0.1175 x64 on Windows 10 version 1809 LTSC x64 - thanks for this! Unfortunately, I don't see klogg.conf file neither in installation path nor in %AppData% - only klogg.ini in the latter, but it doesn't contain the mentioned parameters

PetbkA avatar Dec 16 '21 05:12 PetbkA

Try adding section with colors from previous comments to klogg.ini manually.

variar avatar Dec 16 '21 06:12 variar

21.02.0.1192 x64 - indeed, editing INI file changes the colors. Works like charm! Thank you!

But it seems that not all of the UI elements are changing their colors after first restart. For example, I've changed all #303030 colors to #101010, but some elements, e.g. background of menu toolbar, were still in this color after restarting. Then I've changed DisabledButtonText and DisabledLight colors to #101010 too and suddenly menu toolbar changed its color to #101010. But when I reverted tha latter parameters to their default values and restarted klogg, nothing has changed, so I guess there was some "lag" in applying colors to all UI elements.

Also I can't change background color of the left side bar (the one with line numbers etc.) - according to Instant Eyedropper, it's value is #808080, but changing all #808080 to #101010 didn't change the color

PetbkA avatar Feb 01 '22 06:02 PetbkA

Ooops, sorry, it seems that I was just in a hurry. Reconfigured color scheme from the default values again, and everything's fine and clear :)

Although still can't change left side bar background color

PetbkA avatar Feb 01 '22 19:02 PetbkA