aboutsummaryrefslogtreecommitdiff
path: root/src/Tabs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tabs.cpp')
-rw-r--r--src/Tabs.cpp4
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) {