mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 21:08:40 +00:00
visual cleanup / fixes
This commit is contained in:
+2
-1
@@ -4831,6 +4831,7 @@ df_window_update_and_render(Arena *arena, DF_Window *ws, DF_CmdList *cmds)
|
|||||||
UI_Focus(UI_FocusKind_On)
|
UI_Focus(UI_FocusKind_On)
|
||||||
UI_Squish(0.25f-0.25f*ws->autocomp_open_t)
|
UI_Squish(0.25f-0.25f*ws->autocomp_open_t)
|
||||||
UI_Transparency(1.f-ws->autocomp_open_t)
|
UI_Transparency(1.f-ws->autocomp_open_t)
|
||||||
|
DF_Palette(DF_PaletteCode_Floating)
|
||||||
{
|
{
|
||||||
autocomp_box = ui_build_box_from_stringf(UI_BoxFlag_DefaultFocusNavY|
|
autocomp_box = ui_build_box_from_stringf(UI_BoxFlag_DefaultFocusNavY|
|
||||||
UI_BoxFlag_Clickable|
|
UI_BoxFlag_Clickable|
|
||||||
@@ -4861,7 +4862,7 @@ df_window_update_and_render(Arena *arena, DF_Window *ws, DF_CmdList *cmds)
|
|||||||
{
|
{
|
||||||
DF_AutoCompListerItem *item = &item_array.v[idx];
|
DF_AutoCompListerItem *item = &item_array.v[idx];
|
||||||
UI_Box *item_box = ui_build_box_from_stringf(UI_BoxFlag_DrawBorder|UI_BoxFlag_DrawBackground|UI_BoxFlag_DrawHotEffects|UI_BoxFlag_DrawActiveEffects|UI_BoxFlag_MouseClickable, "autocomp_%I64x", idx);
|
UI_Box *item_box = ui_build_box_from_stringf(UI_BoxFlag_DrawBorder|UI_BoxFlag_DrawBackground|UI_BoxFlag_DrawHotEffects|UI_BoxFlag_DrawActiveEffects|UI_BoxFlag_MouseClickable, "autocomp_%I64x", idx);
|
||||||
UI_Parent(item_box)
|
UI_Parent(item_box) UI_Padding(ui_em(1.f, 1.f))
|
||||||
{
|
{
|
||||||
UI_WidthFill
|
UI_WidthFill
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8566,7 +8566,7 @@ DF_VIEW_UI_FUNCTION_DEF(Settings)
|
|||||||
items_list.count += 1;
|
items_list.count += 1;
|
||||||
n->v.kind = DF_SettingsItemKind_CategoryHeader;
|
n->v.kind = DF_SettingsItemKind_CategoryHeader;
|
||||||
n->v.string = str8_lit("Theme Presets");
|
n->v.string = str8_lit("Theme Presets");
|
||||||
n->v.icon_kind = sv->category_opened[DF_SettingsItemKind_Setting] ? DF_IconKind_DownCaret : DF_IconKind_RightCaret;
|
n->v.icon_kind = sv->category_opened[DF_SettingsItemKind_ThemePreset] ? DF_IconKind_DownCaret : DF_IconKind_RightCaret;
|
||||||
n->v.category = DF_SettingsItemKind_ThemePreset;
|
n->v.category = DF_SettingsItemKind_ThemePreset;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -8604,7 +8604,7 @@ DF_VIEW_UI_FUNCTION_DEF(Settings)
|
|||||||
items_list.count += 1;
|
items_list.count += 1;
|
||||||
n->v.kind = DF_SettingsItemKind_CategoryHeader;
|
n->v.kind = DF_SettingsItemKind_CategoryHeader;
|
||||||
n->v.string = str8_lit("Theme Colors");
|
n->v.string = str8_lit("Theme Colors");
|
||||||
n->v.icon_kind = sv->category_opened[DF_SettingsItemKind_Setting] ? DF_IconKind_DownCaret : DF_IconKind_RightCaret;
|
n->v.icon_kind = sv->category_opened[DF_SettingsItemKind_ThemeColor] ? DF_IconKind_DownCaret : DF_IconKind_RightCaret;
|
||||||
n->v.category = DF_SettingsItemKind_ThemeColor;
|
n->v.category = DF_SettingsItemKind_ThemeColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -8956,9 +8956,7 @@ DF_VIEW_UI_FUNCTION_DEF(Settings)
|
|||||||
}
|
}
|
||||||
if(is_slider) UI_PrefWidth(ui_text_dim(10, 1))
|
if(is_slider) UI_PrefWidth(ui_text_dim(10, 1))
|
||||||
{
|
{
|
||||||
UI_Font(df_font_from_slot(DF_FontSlot_Code))
|
UI_Flags(UI_BoxFlag_DrawTextWeak)
|
||||||
UI_RunFlags(F_RunFlag_Smooth)
|
|
||||||
UI_Flags(UI_BoxFlag_DrawTextWeak)
|
|
||||||
ui_labelf("(%i)", slider_s32_val);
|
ui_labelf("(%i)", slider_s32_val);
|
||||||
UI_PrefWidth(ui_pct(slider_pct, 1.f)) UI_HeightFill UI_FixedX(0) UI_FixedY(0)
|
UI_PrefWidth(ui_pct(slider_pct, 1.f)) UI_HeightFill UI_FixedX(0) UI_FixedY(0)
|
||||||
UI_Palette(ui_build_palette(ui_top_palette(), .background = df_rgba_from_theme_color(DF_ThemeColor_HighlightOverlay)))
|
UI_Palette(ui_build_palette(ui_top_palette(), .background = df_rgba_from_theme_color(DF_ThemeColor_HighlightOverlay)))
|
||||||
|
|||||||
Reference in New Issue
Block a user