From 99a426591c592d7a9b29c2941526347b5dc48872 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Wed, 12 Feb 2020 12:22:24 +0100 Subject: settings page work --- src/settings.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/settings.c') diff --git a/src/settings.c b/src/settings.c index 147718c..3dd16b3 100644 --- a/src/settings.c +++ b/src/settings.c @@ -93,26 +93,15 @@ void settings_page_update_render() } ui_block_end(); -#if 0 ui_block_begin(LAYOUT_HORIZONTAL); { - ui_push_text("Style"); - } - ui_block_end(); - - ui_block_begin(LAYOUT_HORIZONTAL); - { - if (ui_push_color_button("Light", global_ui_context.style.id == UI_STYLE_LIGHT, rgb(250, 250, 250))) - { - ui_set_style(UI_STYLE_LIGHT); - } - if (ui_push_color_button("Dark", global_ui_context.style.id == UI_STYLE_DARK, rgb(50, 50, 50))) + if (ui_push_hypertext_link(localize("copy_config_path"))) { - ui_set_style(UI_STYLE_DARK); + char buffer[PATH_MAX]; + platform_set_clipboard(main_window, get_config_save_location(buffer)); } } ui_block_end(); -#endif } global_ui_context.layout.offset_y = global_settings_page.window.height - 33; -- cgit v1.2.3-70-g09d2