Hi to all
I made a dialog and apply to them my prefered colors. If i choose dark theme in operating system some of the colors of the coontrols of the dialog are dark while other remain bright. Is there any way to force the dialog to ignore system's dark theme or high contrast theme in windows and apply the default theme colors?
Or is there any way to check if dark theme is enabled or if some of colors are changed due to dark theme in order to change others color of dialog manualy?
Thanks
[Solved] Colors of user dialog changes in dark theme
[Solved] Colors of user dialog changes in dark theme
Last edited by robleyd on Wed Mar 16, 2022 1:26 am, edited 2 times in total.
Reason: Add green tick
Reason: Add green tick
Open Office 4.1.9
MX Linux 19.4 - Windows 7
MX Linux 19.4 - Windows 7
Re: Colors of user dialog changes in dark theme
Code: Select all
dialog.getPeer().setProperty( "NativeWidgetLook", False )
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Re: Colors of user dialog changes in dark theme
Thank you JeJe
I already use this property on my dialog but some regions still changes color in dark theme, like the scroll bar of a Text Field, or the text color of a disabled button, or the text of a treecontrol.
Is there any method to detect the change of the those colors when the dialog run in dark theme in order to change all other control at run time with dark variation of colors?
I already use this property on my dialog but some regions still changes color in dark theme, like the scroll bar of a Text Field, or the text color of a disabled button, or the text of a treecontrol.
Is there any method to detect the change of the those colors when the dialog run in dark theme in order to change all other control at run time with dark variation of colors?
Open Office 4.1.9
MX Linux 19.4 - Windows 7
MX Linux 19.4 - Windows 7
Re: Colors of user dialog changes in dark theme
The colors can be seen with
Code: Select all
.view.stylesettings
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Re: Colors of user dialog changes in dark theme
Excellent.
Thank you very much JeJe.
Thank you very much JeJe.
Open Office 4.1.9
MX Linux 19.4 - Windows 7
MX Linux 19.4 - Windows 7