Subversion Repositories Kolibri OS

Rev

Rev 7769 | Rev 7793 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7769 Rev 7780
Line 128... Line 128...
128
{
128
{
129
	dword bg_col, old_list_bg_color;
129
	dword bg_col, old_list_bg_color;
130
	system.color.get();
130
	system.color.get();
131
	old_list_bg_color = swc.list_bg;
131
	old_list_bg_color = swc.list_bg;
132
	bg_col = system.color.work;
132
	bg_col = system.color.work;
133
	if (GrayScaleImage(#bg_col,1,1)>=65) 
133
	if (skin_is_dark()) 
134
	{
134
	{
135
		//light colors
-
 
136
		swc.list_bg = 0xF3F3F3;
-
 
137
	 	swc.text = 0x000000;
-
 
138
	 	swc.dark = 0xDCDCDC;
-
 
139
	 	swc.light = 0xFCFCFC;
-
 
140
	} else {
-
 
141
		//dark colors
135
		//dark colors
142
		swc.list_bg = system.color.work;
136
		swc.list_bg = system.color.work;
143
	 	swc.text = system.color.work_text;
137
	 	swc.text = system.color.work_text;
144
	 	swc.dark = system.color.work_dark;
138
	 	swc.dark = system.color.work_dark;
145
	 	swc.light = system.color.work_light;
139
	 	swc.light = system.color.work_light;
-
 
140
	} else {
-
 
141
		//light colors
-
 
142
		swc.list_bg = 0xF3F3F3;
-
 
143
	 	swc.text = 0x000000;
-
 
144
	 	swc.dark = 0xDCDCDC;
-
 
145
	 	swc.light = 0xFCFCFC;
146
	}
146
	}
Line 147... Line 147...
147
 
147
 
148
	if (swc.list_bg != old_list_bg_color)
148
	if (swc.list_bg != old_list_bg_color)
149
	{	
149
	{