Mercurial > molko
comparison examples/example-ui/example-ui.c @ 520:7e7c6786d21e
ui: button has now pressed style attributes
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 04 Mar 2023 15:10:35 +0100 |
parents | d49a05e7a5b5 |
children | f45a023f6690 |
comparison
equal
deleted
inserted
replaced
519:8b603a7e048a | 520:7e7c6786d21e |
---|---|
133 .text = "Hello", | 133 .text = "Hello", |
134 .h = ELEMENT_HEIGHT | 134 .h = ELEMENT_HEIGHT |
135 }, | 135 }, |
136 .quit_style = { | 136 .quit_style = { |
137 .bg_color = 0x24aed6ff, | 137 .bg_color = 0x24aed6ff, |
138 .text_color = 0xffffffff | 138 .pressed_bg_color = 0x328ca7ff, |
139 .text_color = 0xffffffff, | |
140 .pressed_text_color = 0xffffffff | |
139 }, | 141 }, |
140 .quit = { | 142 .quit = { |
141 .text = "Quit", | 143 .text = "Quit", |
142 .h = ELEMENT_HEIGHT, | 144 .h = ELEMENT_HEIGHT, |
143 .style = &ui.buttons.quit_style | 145 .style = &ui.buttons.quit_style |
148 .end = BUTTON_STYLE_GLOW_COLOR_2, | 150 .end = BUTTON_STYLE_GLOW_COLOR_2, |
149 .delay = BUTTON_STYLE_GLOW_DELAY | 151 .delay = BUTTON_STYLE_GLOW_DELAY |
150 }, | 152 }, |
151 .style = { | 153 .style = { |
152 .text_color = 0xffffffff, | 154 .text_color = 0xffffffff, |
155 .pressed_text_color = 0xffffffff, | |
153 .border_color = BUTTON_STYLE_GLOW_COLOR_1, | 156 .border_color = BUTTON_STYLE_GLOW_COLOR_1, |
157 .pressed_border_color = BUTTON_STYLE_GLOW_COLOR_1, | |
154 .border_size = 2 | 158 .border_size = 2 |
155 } | 159 } |
156 }, | 160 }, |
157 .download = { | 161 .download = { |
158 .w = 180, | 162 .w = 180, |