Home » U++ Library support » Look and Chameleon Technology » New dark theme thread
Re: New dark theme thread [message #58403 is a reply to message #58400] |
Tue, 17 May 2022 17:54   |
Tom1
Messages: 1303 Registered: March 2007
|
Ultimate Contributor |
|
|
Hi Alboni,
A lot can be changed for a specific application. I'm not an expert here, but if you put this into the beginning of your GUI_APP_MAIN you can have a different set of colors and more:
if(IsDarkTheme()){
ChReset();
SColorPaper_Write(Color(32, 32, 32));
SColorFace_Write(Color(40, 40, 40));
SColorText_Write(Color(255, 255, 255));
SColorHighlight_Write(Color(64, 64, 64));
SColorHighlightText_Write(Color(255, 255, 255));
SColorMenu_Write(Color(48, 48, 48));
SColorMenuText_Write(Color(255, 255, 255));
SColorInfo_Write(Color(48, 48, 48));
SColorInfoText_Write(Color(255, 255, 255));
SColorLight_Write(Color(32, 32, 32));
SColorShadow_Write(Color(64, 64, 64));
SColorDisabled_Write(Color(128, 128, 128));
static int adj[] = { 10, 80, -5, -10 };
ChMakeSkin(3, Color(64, 64, 64), Color(64, 64, 64), adj);
// ... and a lot more ...
}
Please look at uppsrc to find out how different items are changed. (The above merely touches the surface.) You may find the implementation of these interesting:
ChFlatDarkSkin();
ChFlatGraySkin();
ChDarkSkin();
ChFlatSkin();
ChGraySkin();
ChHostSkin();
ChClassicSkin();
ChStdSkin();
ChBaseSkin();
Best regards,
Tom
EDIT: PS. Making that particular kind of client happy, takes a lot of work, so please remember to charge by the hour.
[Updated on: Tue, 17 May 2022 17:57] Report message to a moderator
|
|
|
 |
|
New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
By: mr_ped on Mon, 22 April 2019 22:22
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
|
 |
|
Re: New dark theme thread
By: Klugier on Wed, 23 September 2020 00:48
|
 |
|
Re: New dark theme thread
By: mirek on Wed, 23 September 2020 17:30
|
 |
|
Re: New dark theme thread
By: Tom1 on Tue, 21 December 2021 16:32
|
 |
|
Re: New dark theme thread
By: Tom1 on Mon, 03 January 2022 15:28
|
 |
|
Re: New dark theme thread
By: mirek on Wed, 05 January 2022 09:13
|
 |
|
Re: New dark theme thread
By: Tom1 on Wed, 05 January 2022 13:18
|
 |
|
Re: New dark theme thread
By: Tom1 on Wed, 05 January 2022 16:15
|
 |
|
Re: New dark theme thread
By: mirek on Thu, 06 January 2022 08:44
|
 |
|
Re: New dark theme thread
By: mirek on Thu, 06 January 2022 08:46
|
 |
|
Re: New dark theme thread
By: Tom1 on Thu, 06 January 2022 12:34
|
 |
|
Re: New dark theme thread
By: mirek on Thu, 06 January 2022 19:48
|
 |
|
Re: New dark theme thread
By: Tom1 on Fri, 07 January 2022 16:51
|
 |
|
Re: New dark theme thread
By: mirek on Sat, 08 January 2022 14:23
|
 |
|
Re: New dark theme thread
By: Tom1 on Sat, 08 January 2022 17:16
|
 |
|
Re: New dark theme thread
By: Tom1 on Wed, 12 January 2022 09:56
|
 |
|
Re: New dark theme thread
By: Tom1 on Thu, 13 January 2022 13:22
|
 |
|
Re: New dark theme thread
By: mirek on Sun, 16 January 2022 19:15
|
 |
|
Re: New dark theme thread
By: Tom1 on Mon, 17 January 2022 08:50
|
 |
|
Re: New dark theme thread
By: mirek on Mon, 17 January 2022 17:37
|
 |
|
Re: New dark theme thread
By: Tom1 on Tue, 18 January 2022 15:32
|
 |
|
Re: New dark theme thread
By: Alboni on Tue, 17 May 2022 15:16
|
 |
|
Re: New dark theme thread
By: Tom1 on Tue, 17 May 2022 17:54
|
 |
|
Re: New dark theme thread
By: Alboni on Wed, 18 May 2022 15:51
|
 |
|
Re: New dark theme thread
By: superdev on Fri, 26 August 2022 19:35
|
Goto Forum:
Current Time: Fri May 09 22:35:34 CEST 2025
Total time taken to generate the page: 0.01388 seconds
|