ui improvements
This commit is contained in:
25
src/main.cpp
25
src/main.cpp
@@ -142,6 +142,11 @@ static void build_browser_panel(B32 show) {
|
||||
.layoutDirection = CLAY_TOP_TO_BOTTOM,
|
||||
}
|
||||
) {
|
||||
// Top highlight (beveled edge)
|
||||
CLAY(CLAY_ID("BrowserHighlight"),
|
||||
.layout = { .sizing = { .width = CLAY_SIZING_GROW(), .height = CLAY_SIZING_FIXED(1) } },
|
||||
.backgroundColor = g_theme.bg_lighter
|
||||
) {}
|
||||
CLAY_TEXT(CLAY_STRING("Instruments"), &g_text_config_normal);
|
||||
}
|
||||
}
|
||||
@@ -169,6 +174,11 @@ static void build_main_panel(AppState *app) {
|
||||
.layoutDirection = CLAY_TOP_TO_BOTTOM,
|
||||
}
|
||||
) {
|
||||
// Top highlight (beveled edge)
|
||||
CLAY(CLAY_ID("MainHighlight"),
|
||||
.layout = { .sizing = { .width = CLAY_SIZING_GROW(), .height = CLAY_SIZING_FIXED(1) } },
|
||||
.backgroundColor = g_theme.bg_lighter
|
||||
) {}
|
||||
// Section: Buttons
|
||||
ui_label("LblButtons", "Buttons");
|
||||
CLAY(CLAY_ID("ButtonRow"),
|
||||
@@ -313,6 +323,11 @@ static void build_right_panel(AppState *app) {
|
||||
.layoutDirection = CLAY_TOP_TO_BOTTOM,
|
||||
}
|
||||
) {
|
||||
// Top highlight (beveled edge)
|
||||
CLAY(CLAY_ID("PropsHighlight"),
|
||||
.layout = { .sizing = { .width = CLAY_SIZING_GROW(), .height = CLAY_SIZING_FIXED(1) } },
|
||||
.backgroundColor = g_theme.bg_lighter
|
||||
) {}
|
||||
CLAY_TEXT(CLAY_STRING("Details"), &g_text_config_normal);
|
||||
}
|
||||
} else {
|
||||
@@ -326,6 +341,11 @@ static void build_right_panel(AppState *app) {
|
||||
.layoutDirection = CLAY_TOP_TO_BOTTOM,
|
||||
}
|
||||
) {
|
||||
// Top highlight (beveled edge)
|
||||
CLAY(CLAY_ID("MidiHighlight"),
|
||||
.layout = { .sizing = { .width = CLAY_SIZING_GROW(), .height = CLAY_SIZING_FIXED(1) } },
|
||||
.backgroundColor = g_theme.bg_lighter
|
||||
) {}
|
||||
// Refresh button
|
||||
Clay_ElementId refresh_eid = CLAY_ID("MidiRefreshBtn");
|
||||
B32 refresh_hovered = Clay_PointerOver(refresh_eid);
|
||||
@@ -504,6 +524,11 @@ static void build_log_panel(B32 show) {
|
||||
.layoutDirection = CLAY_TOP_TO_BOTTOM,
|
||||
}
|
||||
) {
|
||||
// Top highlight (beveled edge)
|
||||
CLAY(CLAY_ID("LogHighlight"),
|
||||
.layout = { .sizing = { .width = CLAY_SIZING_GROW(), .height = CLAY_SIZING_FIXED(1) } },
|
||||
.backgroundColor = g_theme.bg_lighter
|
||||
) {}
|
||||
CLAY_TEXT(CLAY_STRING("Output / Log"), &g_text_config_normal);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user