forked from KolibriOS/kolibrios
Eolite: get param. system font smooth
git-svn-id: svn://kolibrios.org@5877 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
7fac0c11be
commit
161e070ff1
@ -159,8 +159,12 @@ void main()
|
|||||||
strcpy(#inactive_path, #path);
|
strcpy(#inactive_path, #path);
|
||||||
llist_copy(#files_inactive, #files);
|
llist_copy(#files_inactive, #files);
|
||||||
font.no_bg_copy = true;
|
font.no_bg_copy = true;
|
||||||
|
|
||||||
ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#TMPS,4096,"/sys/FONTS/Tahoma.kf");
|
ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#TMPS,4096,"/sys/FONTS/Tahoma.kf");
|
||||||
font.load(#TMPS);
|
font.load(#TMPS);
|
||||||
|
ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#TMPS,4096,"on");
|
||||||
|
if(!strcmp(#TMPS,"off"))smooth_font = false;
|
||||||
|
else smooth_font = true;
|
||||||
SetEventMask(1100111b);
|
SetEventMask(1100111b);
|
||||||
loop(){
|
loop(){
|
||||||
switch(WaitEvent())
|
switch(WaitEvent())
|
||||||
|
@ -57,7 +57,7 @@ void settings_dialog()
|
|||||||
else if (id==26) && (files.item_h>18) files.item_h--;
|
else if (id==26) && (files.item_h>18) files.item_h--;
|
||||||
else if (id==27) MOUSE_TIME++;
|
else if (id==27) MOUSE_TIME++;
|
||||||
else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--;
|
else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--;
|
||||||
else if (id==29) smooth_font ^= true;
|
//else if (id==29) smooth_font ^= true;
|
||||||
else if (id==30) { font.size.text++; IF(!font.changeSIZE()) font.size.text--; BigFontsChange(); }
|
else if (id==30) { font.size.text++; IF(!font.changeSIZE()) font.size.text--; BigFontsChange(); }
|
||||||
else if (id==31) { font.size.text--; IF(!font.changeSIZE()) font.size.text++; BigFontsChange(); }
|
else if (id==31) { font.size.text--; IF(!font.changeSIZE()) font.size.text++; BigFontsChange(); }
|
||||||
EventRedrawWindow(Form.left,Form.top);
|
EventRedrawWindow(Form.left,Form.top);
|
||||||
@ -70,10 +70,10 @@ void settings_dialog()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case evReDraw:
|
case evReDraw:
|
||||||
DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 300, 280+GetSkinHeight(),0x34,system.color.work,TITLE_SETT);
|
DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 300, 260+GetSkinHeight(),0x34,system.color.work,TITLE_SETT);
|
||||||
DrawSettingsCheckBoxes();
|
DrawSettingsCheckBoxes();
|
||||||
DrawFlatButton(9, 208, strlen(SAVE_PATH_AS_DEFAULT)+4*6, 22, 6, 0xE4DFE1, SAVE_PATH_AS_DEFAULT);
|
DrawFlatButton(9, 183, strlen(SAVE_PATH_AS_DEFAULT)+4*6, 22, 6, 0xE4DFE1, SAVE_PATH_AS_DEFAULT);
|
||||||
DrawFlatButton(9, 240, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS);
|
DrawFlatButton(9, 215, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -92,10 +92,10 @@ void DrawSettingsCheckBoxes()
|
|||||||
CheckBox2(10, 33, 21, SHOW_REAL_NAMES, real_files_names_case);
|
CheckBox2(10, 33, 21, SHOW_REAL_NAMES, real_files_names_case);
|
||||||
CheckBox2(10, 55, 22, NOTIFY_COPY_END, info_after_copy);
|
CheckBox2(10, 55, 22, NOTIFY_COPY_END, info_after_copy);
|
||||||
CheckBox2(10, 77, 24, USE_TWO_PANELS, two_panels);
|
CheckBox2(10, 77, 24, USE_TWO_PANELS, two_panels);
|
||||||
CheckBox2(10, 99, 29, USE_SMOOTH_FONT, smooth_font);
|
//CheckBox2(10, 99, 29, USE_SMOOTH_FONT, smooth_font);
|
||||||
MoreLessBox(10, 125, 18, 27, 28, #system.color, MOUSE_TIME, T_DOUBLE_CLICK);
|
MoreLessBox(10, 99, 18, 27, 28, #system.color, MOUSE_TIME, T_DOUBLE_CLICK);
|
||||||
MoreLessBox(10, 152, 18, 25, 26, #system.color, files.item_h, LIST_LINE_HEIGHT);
|
MoreLessBox(10, 125, 18, 25, 26, #system.color, files.item_h, LIST_LINE_HEIGHT);
|
||||||
if (font.data) MoreLessBox(10, 179, 18, 30, 31, #system.color, font.size.text, FONT_SIZE_LABEL);
|
if (font.data) MoreLessBox(10, 152, 18, 30, 31, #system.color, font.size.text, FONT_SIZE_LABEL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ void LoadIniSettings()
|
|||||||
ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX;
|
ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX;
|
||||||
ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 9); font.size.text = EAX;
|
ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 9); font.size.text = EAX;
|
||||||
ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX;
|
ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX;
|
||||||
ini_get_int stdcall (eolite_ini_path, #config_section, "UseSmoothFont", true);smooth_font = EAX;
|
//ini_get_int stdcall (eolite_ini_path, #config_section, "UseSmoothFont", true);smooth_font = EAX;
|
||||||
ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 18); files.item_h = EAX;
|
ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 18); files.item_h = EAX;
|
||||||
ini_get_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", 50); MOUSE_TIME = EAX;
|
ini_get_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", 50); MOUSE_TIME = EAX;
|
||||||
ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX;
|
ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX;
|
||||||
@ -128,7 +128,7 @@ void SaveIniSettings()
|
|||||||
ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
|
ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
|
||||||
ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", font.size.text);
|
ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", font.size.text);
|
||||||
ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels);
|
ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels);
|
||||||
ini_set_int stdcall (eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
|
//ini_set_int stdcall (eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
|
||||||
ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h);
|
ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h);
|
||||||
ini_set_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
|
ini_set_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
|
||||||
ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left);
|
ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left);
|
||||||
@ -143,7 +143,7 @@ void SaveIniSettings()
|
|||||||
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
|
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
|
||||||
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "FontSize", font.size.text);
|
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "FontSize", font.size.text);
|
||||||
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TwoPanels", two_panels);
|
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TwoPanels", two_panels);
|
||||||
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
|
//ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
|
||||||
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "LineHeight", files.item_h);
|
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "LineHeight", files.item_h);
|
||||||
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
|
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
|
||||||
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinX", Form.left);
|
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinX", Form.left);
|
||||||
|
Loading…
Reference in New Issue
Block a user