Rev 5465 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5465 | Rev 5468 | ||
---|---|---|---|
1 | void LoadIniConfig() |
1 | void LoadIniConfig() |
2 | { |
2 | { |
3 | debugln(#pixie_ini_path); |
3 | debugln(#pixie_ini_path); |
4 | ini_get_int stdcall (#pixie_ini_path, "Config", "current_theme", THEME_DARK); |
4 | ini_get_int stdcall (#pixie_ini_path, "Config", "current_theme", THEME_DARK); |
5 | current_theme = EAX; |
5 | current_theme = EAX; |
6 | if (current_theme == THEME_DARK) SetColorThemeDark(); else SetColorThemeLight(); |
6 | if (current_theme == THEME_DARK) SetColorThemeDark(); else SetColorThemeLight(); |
7 | 7 | ||
8 | ini_get_int stdcall (#pixie_ini_path, "Config", "window_mode", WINDOW_MODE_NORMAL); |
8 | ini_get_int stdcall (#pixie_ini_path, "Config", "window_mode", WINDOW_MODE_NORMAL); |
9 | window_mode = EAX; |
9 | window_mode = EAX; |
10 | 10 | ||
11 | ini_get_int stdcall (#pixie_ini_path, "Config", "win_x", 100); |
11 | ini_get_int stdcall (#pixie_ini_path, "Config", "win_x", 100); |
12 | win_x = EAX; |
12 | win_x = EAX; |
13 | 13 | ||
14 | ini_get_int stdcall (#pixie_ini_path, "Config", "win_y", 90); |
14 | ini_get_int stdcall (#pixie_ini_path, "Config", "win_y", 90); |
15 | win_y = EAX; |
15 | win_y = EAX; |
16 | 16 | ||
17 | ini_get_str stdcall (#pixie_ini_path, "Config", "last_folder", #work_folder, sizeof(work_folder), 0); |
17 | ini_get_str stdcall (#pixie_ini_path, "Config", "last_folder", #work_folder, sizeof(work_folder), 0); |
18 | } |
18 | } |
19 | 19 | ||
20 | void SaveIniConfig() |
20 | void SaveIniConfig() |
21 | { |
21 | { |
22 | debugln(#pixie_ini_path); |
22 | debugln(#pixie_ini_path); |
23 | ini_set_int stdcall (#pixie_ini_path, "Config", "current_theme", current_theme); |
23 | ini_set_int stdcall (#pixie_ini_path, "Config", "current_theme", current_theme); |
24 | ini_set_int stdcall (#pixie_ini_path, "Config", "window_mode", window_mode); |
24 | ini_set_int stdcall (#pixie_ini_path, "Config", "window_mode", window_mode); |
25 | ini_set_int stdcall (#pixie_ini_path, "Config", "win_x", Form.left); |
25 | ini_set_int stdcall (#pixie_ini_path, "Config", "win_x", Form.left); |
26 | ini_set_int stdcall (#pixie_ini_path, "Config", "win_y", Form.top); |
26 | ini_set_int stdcall (#pixie_ini_path, "Config", "win_y", Form.top); |
27 | ini_set_str stdcall (#pixie_ini_path, "Config", "last_folder", #work_folder, strlen(#work_folder)); |
27 | ini_set_str stdcall (#pixie_ini_path, "Config", "last_folder", #work_folder, strlen(#work_folder)); |
28 | } |
28 | } |
29 | 29 | ||
30 | struct struct_pixie_colors { |
30 | struct struct_pixie_colors { |
31 | dword color_top_panel_text, |
31 | dword color_top_panel_text, |
32 | color_list_bg, |
32 | color_list_bg, |
33 | color_list_text, |
33 | color_list_text, |
34 | color_list_active_bg, |
34 | color_list_active_bg, |
35 | color_list_active_text, |
35 | color_list_active_text, |
36 | color_list_active_pointer, |
36 | color_list_active_pointer, |
37 | color_list_scroller, |
37 | color_list_scroller, |
38 | color_list_border; |
38 | color_list_border; |
39 | } theme; |
39 | } theme; |
40 | 40 | ||
41 | 41 | ||
42 | void SetColorThemeDark() |
42 | void SetColorThemeDark() |
43 | { |
43 | { |
44 | current_theme = THEME_DARK; |
44 | current_theme = THEME_DARK; |
45 | Libimg_LoadImage(#skin, abspath("pixie_dark.png")); |
45 | Libimg_LoadImage(#skin, abspath("s_dark.png")); |
46 | skin.w = 300; |
46 | skin.w = 300; |
47 | theme.color_top_panel_text = 0xFCFFBE; |
47 | theme.color_top_panel_text = 0xFCFFBE; |
48 | theme.color_list_bg = 0x313031; |
48 | theme.color_list_bg = 0x313031; |
49 | theme.color_list_text = 0xADAEAD; |
49 | theme.color_list_text = 0xADAEAD; |
50 | theme.color_list_active_bg = 0x434343; |
50 | theme.color_list_active_bg = 0x434343; |
51 | theme.color_list_active_text = 0xADAEAD; |
51 | theme.color_list_active_text = 0xADAEAD; |
52 | theme.color_list_active_pointer = 0xD6D6D6; |
52 | theme.color_list_active_pointer = 0xD6D6D6; |
53 | theme.color_list_scroller = 0xBBBbbb; |
53 | theme.color_list_scroller = 0xBBBbbb; |
54 | theme.color_list_border = 0x121212; |
54 | theme.color_list_border = 0x121212; |
55 | scroll1.bckg_col = theme.color_list_bg; |
55 | scroll1.bckg_col = theme.color_list_bg; |
56 | scroll1.frnt_col = theme.color_list_border; |
56 | scroll1.frnt_col = theme.color_list_border; |
57 | scroll1.line_col = theme.color_list_border; |
57 | scroll1.line_col = theme.color_list_border; |
58 | DrawWindow(); |
58 | DrawWindow(); |
59 | } |
59 | } |
60 | 60 | ||
61 | 61 | ||
62 | void SetColorThemeLight() |
62 | void SetColorThemeLight() |
63 | { |
63 | { |
64 | current_theme = THEME_LIGHT; |
64 | current_theme = THEME_LIGHT; |
65 | Libimg_LoadImage(#skin, abspath("pixie_light.png")); |
65 | Libimg_LoadImage(#skin, abspath("s_light.png")); |
66 | skin.w = 300; |
66 | skin.w = 300; |
67 | theme.color_top_panel_text = 0x85663F; |
67 | theme.color_top_panel_text = 0x85663F; |
68 | theme.color_list_bg = 0xE2E2E2; |
68 | theme.color_list_bg = 0xE2E2E2; |
69 | theme.color_list_text = 0x595959; |
69 | theme.color_list_text = 0x595959; |
70 | theme.color_list_active_bg = 0xFAF3AF; |
70 | theme.color_list_active_bg = 0xFAF3AF; |
71 | theme.color_list_active_text = 0x85663F; |
71 | theme.color_list_active_text = 0x85663F; |
72 | theme.color_list_active_pointer = 0x85663F; |
72 | theme.color_list_active_pointer = 0x85663F; |
73 | theme.color_list_scroller = 0xBBBbbb; |
73 | theme.color_list_scroller = 0xBBBbbb; |
74 | theme.color_list_border = 0x736D65; |
74 | theme.color_list_border = 0x736D65; |
75 | scroll1.bckg_col = theme.color_list_bg; |
75 | scroll1.bckg_col = theme.color_list_bg; |
76 | scroll1.frnt_col = theme.color_list_border; |
76 | scroll1.frnt_col = theme.color_list_border; |
77 | scroll1.line_col = theme.color_list_border; |
77 | scroll1.line_col = theme.color_list_border; |
78 | DrawWindow(); |
78 | DrawWindow(); |
79 | } |
79 | } |