Просмотр исходного кода

Adjust colors of textbox and background

Evgeniy Parfenyuk 3 недель назад
Родитель
Сommit
27027f205b
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      src/main.c
  2. 2 2
      src/ui/text_box.c

+ 2 - 2
src/main.c

@@ -33,7 +33,7 @@ int main(void)
     TextBox dialogueBox;
     TextBoxInit(&dialogueBox, screenWidth, screenHeight);
 
-    TextBoxSetText(&dialogueBox, "\xD0\x90\xD0\xBB\xD0\xB8\xD1\x81\xD0\xB0",
+    TextBoxSetText(&dialogueBox, "",
                    "Hello from Vinora Engine textbox!\n\n"
                    "D-d-do you like it or something? :3");
 
@@ -41,7 +41,7 @@ int main(void)
     {
         dialogueBox.timer += GetFrameTime();
         BeginDrawing();
-            ClearBackground((Color){20, 25, 40, 255});
+            ClearBackground(BLACK);
             TextBoxDraw(&dialogueBox);
         EndDrawing();
     }

+ 2 - 2
src/ui/text_box.c

@@ -22,8 +22,8 @@ void TextBoxInit(TextBox *tb, int screenWidth, int screenHeight)
         .width = screenWidth - 80,
         .height = 160};
 
-    tb->bg_color = (Color){0, 0, 0, 220};
-    tb->border_color = (Color){255, 255, 255, 180};
+    tb->bg_color = (Color){23, 28, 37, 220};
+    tb->border_color = (Color){25, 31, 40, 180};
     tb->border_thickness = 3;
     // TODO: remake to use charset instead of 0-2048 range
     tb->font = LoadFontEx("assets/fonts/NotoSans-Regular.ttf", 32, NULL, 2048);