diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-02-09 03:19:18 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-02-09 03:19:18 +0100 |
commit | 404ac476a213164a041f0f53be30855df815aa6a (patch) | |
tree | 30084a2daa162751eaa1beda80ae8d3dc41111dd /src/Tabs.cpp | |
parent | 75c610d1f65d741bbeba9f1ddeef60a6e9315427 (diff) |
Add spacing_scale config to allow changing ui spacing
Diffstat (limited to 'src/Tabs.cpp')
-rw-r--r-- | src/Tabs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Tabs.cpp b/src/Tabs.cpp index 3d0dc76..6b33df1 100644 --- a/src/Tabs.cpp +++ b/src/Tabs.cpp @@ -14,7 +14,7 @@ namespace QuickMedia { static const float tab_text_size = std::floor(get_config().tab.font_size * get_config().scale * get_config().font_scale); static const float tab_height = tab_text_size + std::floor(10.0f * get_config().scale); static const float tab_min_width = 250.0f; - static const float tab_margin_x = 10.0f; + static const float tab_margin_x = std::floor(10.0f * get_config().spacing_scale); // static float Tabs::get_height() { @@ -23,7 +23,7 @@ namespace QuickMedia { // static float Tabs::get_shade_height() { - return tab_height + std::floor(10.0f * get_config().scale); + return tab_height + std::floor(10.0f * get_config().scale * get_config().spacing_scale); } Tabs::Tabs(mgl::Shader *rounded_rectangle_shader, mgl::Color shade_color) : background(mgl::vec2f(1.0f, 1.0f), 10.0f * get_config().scale, get_theme().selected_color, rounded_rectangle_shader), shade_color(shade_color) { |