| Line 35... |
Line 35... |
| 35 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_mainchooser =
|
35 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_mainchooser =
|
| 36 |
{
|
36 |
{
|
| 37 |
.size = LIBUI_POINT(164, 10),
|
37 |
.size = LIBUI_POINT(164, 10),
|
| 38 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
38 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
| 39 |
.fill_color = 0xa0000000,
|
39 |
.fill_color = 0xa0000000,
|
| 40 |
.fill_color_selected = 0x60000000,
|
40 |
.fill_color_selected = 0x60ffffff,
|
| 41 |
.icon_pos = LIBUI_POINT_NULL,
|
41 |
.icon_pos = LIBUI_POINT_NULL,
|
| 42 |
.icon = LIBUI_SURFACE_NULL,
|
42 |
.icon = LIBUI_SURFACE_NULL,
|
| 43 |
.icon_opacity = 0,
|
43 |
.icon_opacity = 0,
|
| 44 |
.icon_selected = LIBUI_SURFACE_NULL,
|
44 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 45 |
.icon_selected_opacity = 0,
|
45 |
.icon_selected_opacity = 0,
|
| Line 53... |
Line 53... |
| 53 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_umsboot =
|
53 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_umsboot =
|
| 54 |
{
|
54 |
{
|
| 55 |
.size = LIBUI_POINT(164, 10),
|
55 |
.size = LIBUI_POINT(164, 10),
|
| 56 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
56 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
| 57 |
.fill_color = 0xa0000000,
|
57 |
.fill_color = 0xa0000000,
|
| 58 |
.fill_color_selected = 0x60000000,
|
58 |
.fill_color_selected = 0x60ffffff,
|
| 59 |
.icon_pos = LIBUI_POINT_NULL,
|
59 |
.icon_pos = LIBUI_POINT_NULL,
|
| 60 |
.icon = LIBUI_SURFACE_NULL,
|
60 |
.icon = LIBUI_SURFACE_NULL,
|
| 61 |
.icon_opacity = 0,
|
61 |
.icon_opacity = 0,
|
| 62 |
.icon_selected = LIBUI_SURFACE_NULL,
|
62 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 63 |
.icon_selected_opacity = 0,
|
63 |
.icon_selected_opacity = 0,
|
| Line 71... |
Line 71... |
| 71 |
struct chooser_renderer_list_itemdata toolchooser_rparams_diagmode =
|
71 |
struct chooser_renderer_list_itemdata toolchooser_rparams_diagmode =
|
| 72 |
{
|
72 |
{
|
| 73 |
.size = LIBUI_POINT(164, 10),
|
73 |
.size = LIBUI_POINT(164, 10),
|
| 74 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
74 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
| 75 |
.fill_color = 0xa0000000,
|
75 |
.fill_color = 0xa0000000,
|
| 76 |
.fill_color_selected = 0x60000000,
|
76 |
.fill_color_selected = 0x60ffffff,
|
| 77 |
.icon_pos = LIBUI_POINT_NULL,
|
77 |
.icon_pos = LIBUI_POINT_NULL,
|
| 78 |
.icon = LIBUI_SURFACE_NULL,
|
78 |
.icon = LIBUI_SURFACE_NULL,
|
| 79 |
.icon_opacity = 0,
|
79 |
.icon_opacity = 0,
|
| 80 |
.icon_selected = LIBUI_SURFACE_NULL,
|
80 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 81 |
.icon_selected_opacity = 0,
|
81 |
.icon_selected_opacity = 0,
|
| Line 89... |
Line 89... |
| 89 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_rockbox_fallback =
|
89 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_rockbox_fallback =
|
| 90 |
{
|
90 |
{
|
| 91 |
.size = LIBUI_POINT(164, 10),
|
91 |
.size = LIBUI_POINT(164, 10),
|
| 92 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
92 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
| 93 |
.fill_color = 0xa0000000,
|
93 |
.fill_color = 0xa0000000,
|
| 94 |
.fill_color_selected = 0x60000000,
|
94 |
.fill_color_selected = 0x60ffffff,
|
| 95 |
.icon_pos = LIBUI_POINT_NULL,
|
95 |
.icon_pos = LIBUI_POINT_NULL,
|
| 96 |
.icon = LIBUI_SURFACE_NULL,
|
96 |
.icon = LIBUI_SURFACE_NULL,
|
| 97 |
.icon_opacity = 0,
|
97 |
.icon_opacity = 0,
|
| 98 |
.icon_selected = LIBUI_SURFACE_NULL,
|
98 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 99 |
.icon_selected_opacity = 0,
|
99 |
.icon_selected_opacity = 0,
|
| Line 107... |
Line 107... |
| 107 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_clearcfg =
|
107 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_clearcfg =
|
| 108 |
{
|
108 |
{
|
| 109 |
.size = LIBUI_POINT(164, 10),
|
109 |
.size = LIBUI_POINT(164, 10),
|
| 110 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
110 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
| 111 |
.fill_color = 0xa0000000,
|
111 |
.fill_color = 0xa0000000,
|
| 112 |
.fill_color_selected = 0x60000000,
|
112 |
.fill_color_selected = 0x60ffffff,
|
| 113 |
.icon_pos = LIBUI_POINT_NULL,
|
113 |
.icon_pos = LIBUI_POINT_NULL,
|
| 114 |
.icon = LIBUI_SURFACE_NULL,
|
114 |
.icon = LIBUI_SURFACE_NULL,
|
| 115 |
.icon_opacity = 0,
|
115 |
.icon_opacity = 0,
|
| 116 |
.icon_selected = LIBUI_SURFACE_NULL,
|
116 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 117 |
.icon_selected_opacity = 0,
|
117 |
.icon_selected_opacity = 0,
|
| Line 125... |
Line 125... |
| 125 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_cleardb =
|
125 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_cleardb =
|
| 126 |
{
|
126 |
{
|
| 127 |
.size = LIBUI_POINT(164, 10),
|
127 |
.size = LIBUI_POINT(164, 10),
|
| 128 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
128 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
| 129 |
.fill_color = 0xa0000000,
|
129 |
.fill_color = 0xa0000000,
|
| 130 |
.fill_color_selected = 0x60000000,
|
130 |
.fill_color_selected = 0x60ffffff,
|
| 131 |
.icon_pos = LIBUI_POINT_NULL,
|
131 |
.icon_pos = LIBUI_POINT_NULL,
|
| 132 |
.icon = LIBUI_SURFACE_NULL,
|
132 |
.icon = LIBUI_SURFACE_NULL,
|
| 133 |
.icon_opacity = 0,
|
133 |
.icon_opacity = 0,
|
| 134 |
.icon_selected = LIBUI_SURFACE_NULL,
|
134 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 135 |
.icon_selected_opacity = 0,
|
135 |
.icon_selected_opacity = 0,
|
| Line 143... |
Line 143... |
| 143 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_reformat =
|
143 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_reformat =
|
| 144 |
{
|
144 |
{
|
| 145 |
.size = LIBUI_POINT(164, 10),
|
145 |
.size = LIBUI_POINT(164, 10),
|
| 146 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
146 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
| 147 |
.fill_color = 0xa0000000,
|
147 |
.fill_color = 0xa0000000,
|
| 148 |
.fill_color_selected = 0x60000000,
|
148 |
.fill_color_selected = 0x60ffffff,
|
| 149 |
.icon_pos = LIBUI_POINT_NULL,
|
149 |
.icon_pos = LIBUI_POINT_NULL,
|
| 150 |
.icon = LIBUI_SURFACE_NULL,
|
150 |
.icon = LIBUI_SURFACE_NULL,
|
| 151 |
.icon_opacity = 0,
|
151 |
.icon_opacity = 0,
|
| 152 |
.icon_selected = LIBUI_SURFACE_NULL,
|
152 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 153 |
.icon_selected_opacity = 0,
|
153 |
.icon_selected_opacity = 0,
|
| Line 161... |
Line 161... |
| 161 |
struct chooser_renderer_list_itemdata toolchooser_rparams_uninstaller =
|
161 |
struct chooser_renderer_list_itemdata toolchooser_rparams_uninstaller =
|
| 162 |
{
|
162 |
{
|
| 163 |
.size = LIBUI_POINT(164, 10),
|
163 |
.size = LIBUI_POINT(164, 10),
|
| 164 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
164 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
| 165 |
.fill_color = 0xa0000000,
|
165 |
.fill_color = 0xa0000000,
|
| 166 |
.fill_color_selected = 0x60000000,
|
166 |
.fill_color_selected = 0x60ffffff,
|
| 167 |
.icon_pos = LIBUI_POINT_NULL,
|
167 |
.icon_pos = LIBUI_POINT_NULL,
|
| 168 |
.icon = LIBUI_SURFACE_NULL,
|
168 |
.icon = LIBUI_SURFACE_NULL,
|
| 169 |
.icon_opacity = 0,
|
169 |
.icon_opacity = 0,
|
| 170 |
.icon_selected = LIBUI_SURFACE_NULL,
|
170 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 171 |
.icon_selected_opacity = 0,
|
171 |
.icon_selected_opacity = 0,
|
| Line 178... |
Line 178... |
| 178 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_settingchooser =
|
178 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_settingchooser =
|
| 179 |
{
|
179 |
{
|
| 180 |
.size = LIBUI_POINT(164, 10),
|
180 |
.size = LIBUI_POINT(164, 10),
|
| 181 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
181 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
|
| 182 |
.fill_color = 0xa0000000,
|
182 |
.fill_color = 0xa0000000,
|
| 183 |
.fill_color_selected = 0x60000000,
|
183 |
.fill_color_selected = 0x60ffffff,
|
| 184 |
.icon_pos = LIBUI_POINT_NULL,
|
184 |
.icon_pos = LIBUI_POINT_NULL,
|
| 185 |
.icon = LIBUI_SURFACE_NULL,
|
185 |
.icon = LIBUI_SURFACE_NULL,
|
| 186 |
.icon_opacity = 0,
|
186 |
.icon_opacity = 0,
|
| 187 |
.icon_selected = LIBUI_SURFACE_NULL,
|
187 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 188 |
.icon_selected_opacity = 0,
|
188 |
.icon_selected_opacity = 0,
|
| Line 317... |
Line 317... |
| 317 |
toolchooser_rparams_settingchooser.render = ui->chooser_renderer_list_show_arrow_right;
|
317 |
toolchooser_rparams_settingchooser.render = ui->chooser_renderer_list_show_arrow_right;
|
| 318 |
}
|
318 |
}
|
| 319 |
|
319 |
|
| 320 |
void toolchooser_apply_settings()
|
320 |
void toolchooser_apply_settings()
|
| 321 |
{
|
321 |
{
|
| 322 |
if (settings.snow) toolchooser.tickinterval = 50000;
|
- |
|
| 323 |
else toolchooser.tickinterval = 10000000;
|
- |
|
| 324 |
}
|
322 |
}
|