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 --- data/translations/en-English.mo | Bin 1806 -> 1869 bytes data/translations/nl-Dutch.mo | Bin 1886 -> 1958 bytes src/project-base | 2 +- src/settings.c | 17 +++-------------- 4 files changed, 4 insertions(+), 15 deletions(-) diff --git a/data/translations/en-English.mo b/data/translations/en-English.mo index 402d0e7..e56e0da 100644 Binary files a/data/translations/en-English.mo and b/data/translations/en-English.mo differ diff --git a/data/translations/nl-Dutch.mo b/data/translations/nl-Dutch.mo index 3c7e857..20c54fc 100644 Binary files a/data/translations/nl-Dutch.mo and b/data/translations/nl-Dutch.mo differ diff --git a/src/project-base b/src/project-base index 7240eec..96eb719 160000 --- a/src/project-base +++ b/src/project-base @@ -1 +1 @@ -Subproject commit 7240eec58cc28e0340274caf565889a1929ffebd +Subproject commit 96eb719df8a84c7892121aee9e684a64eae2e4d4 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