summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-16 16:15:30 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-16 16:15:30 +0300
commit027d8185b10632092508bfda62467d24c9f8655b (patch)
tree03b0bf1edb9f2f284afde1679e24ac390b2f201d /src/ui/window.c
parentb10087331ff28acbc368361ba14dba3a70b7dc90 (diff)
Palette has UI colors; defined Light theme colors
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 5e1ad9c6..8760d36f 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -121,7 +121,7 @@ static const iMenuItem helpMenuItems[] = {
121#endif 121#endif
122 122
123static const char *reloadCStr_ = "\U0001f503"; 123static const char *reloadCStr_ = "\U0001f503";
124static const char *stopCStr_ = orange_ColorEscape "\U0001f310"; 124static const char *stopCStr_ = uiTextCaution_ColorEscape "\U0001f310";
125 125
126static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) { 126static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) {
127 if (equal_Command(cmd, "window.resized")) { 127 if (equal_Command(cmd, "window.resized")) {
@@ -266,7 +266,7 @@ static void setupUserInterface_Window(iWindow *d) {
266 arrangeHorizontal_WidgetFlag, 266 arrangeHorizontal_WidgetFlag,
267 iTrue); 267 iTrue);
268 addChild_Widget(div, iClob(navBar)); 268 addChild_Widget(div, iClob(navBar));
269 setBackgroundColor_Widget(navBar, gray25_ColorId); 269 setBackgroundColor_Widget(navBar, uiBackground_ColorId);
270 setCommandHandler_Widget(navBar, handleNavBarCommands_); 270 setCommandHandler_Widget(navBar, handleNavBarCommands_);
271 addChild_Widget(navBar, iClob(newIcon_LabelWidget("\U0001f850", 0, 0, "navigate.back"))); 271 addChild_Widget(navBar, iClob(newIcon_LabelWidget("\U0001f850", 0, 0, "navigate.back")));
272 addChild_Widget(navBar, iClob(newIcon_LabelWidget("\U0001f852", 0, 0, "navigate.forward"))); 272 addChild_Widget(navBar, iClob(newIcon_LabelWidget("\U0001f852", 0, 0, "navigate.forward")));
@@ -303,7 +303,7 @@ static void setupUserInterface_Window(iWindow *d) {
303 iWidget *tabBar = makeTabs_Widget(div); 303 iWidget *tabBar = makeTabs_Widget(div);
304 setId_Widget(tabBar, "doctabs"); 304 setId_Widget(tabBar, "doctabs");
305 setFlags_Widget(tabBar, expand_WidgetFlag, iTrue); 305 setFlags_Widget(tabBar, expand_WidgetFlag, iTrue);
306 setBackgroundColor_Widget(tabBar, gray25_ColorId); 306 setBackgroundColor_Widget(tabBar, uiBackground_ColorId);
307 appendTabPage_Widget(tabBar, iClob(new_DocumentWidget()), "Document", 0, 0); 307 appendTabPage_Widget(tabBar, iClob(new_DocumentWidget()), "Document", 0, 0);
308 iWidget *buttons = findChild_Widget(tabBar, "tabs.buttons"); 308 iWidget *buttons = findChild_Widget(tabBar, "tabs.buttons");
309 setFlags_Widget(buttons, collapse_WidgetFlag | hidden_WidgetFlag, iTrue); 309 setFlags_Widget(buttons, collapse_WidgetFlag | hidden_WidgetFlag, iTrue);
@@ -324,7 +324,7 @@ static void setupUserInterface_Window(iWindow *d) {
324 resizeChildren_WidgetFlag | arrangeHorizontal_WidgetFlag, 324 resizeChildren_WidgetFlag | arrangeHorizontal_WidgetFlag,
325 iTrue); 325 iTrue);
326 addChild_Widget(div, iClob(searchBar)); 326 addChild_Widget(div, iClob(searchBar));
327 setBackgroundColor_Widget(searchBar, gray25_ColorId); 327 setBackgroundColor_Widget(searchBar, uiBackground_ColorId);
328 setCommandHandler_Widget(searchBar, handleSearchBarCommands_); 328 setCommandHandler_Widget(searchBar, handleSearchBarCommands_);
329 addChild_Widget(searchBar, iClob(new_LabelWidget("\U0001f50d Text", 0, 0, NULL))); 329 addChild_Widget(searchBar, iClob(new_LabelWidget("\U0001f50d Text", 0, 0, NULL)));
330 iInputWidget *input = new_InputWidget(0); 330 iInputWidget *input = new_InputWidget(0);
@@ -372,7 +372,7 @@ static float pixelRatio_Window_(const iWindow *d) {
372} 372}
373 373
374static void drawBlank_Window_(iWindow *d) { 374static void drawBlank_Window_(iWindow *d) {
375 const iColor bg = get_Color(gray25_ColorId); 375 const iColor bg = get_Color(uiBackground_ColorId);
376 SDL_SetRenderDrawColor(d->render, bg.r, bg.g, bg.b, 255); 376 SDL_SetRenderDrawColor(d->render, bg.r, bg.g, bg.b, 255);
377 SDL_RenderClear(d->render); 377 SDL_RenderClear(d->render);
378 SDL_RenderPresent(d->render); 378 SDL_RenderPresent(d->render);