Make icon size for small tabbar configurable too
This commit is contained in:
@@ -75,6 +75,7 @@ const char *AppearanceSettingsPage::kTabBarSystemColor= "tab_system_color";
|
||||
const char *AppearanceSettingsPage::kTabBarGradient = "tab_gradient";
|
||||
const char *AppearanceSettingsPage::kTabBarColor = "tab_color";
|
||||
|
||||
const char *AppearanceSettingsPage::kIconSizeTabbarSmallMode = "icon_size_tabbar_small_mode";
|
||||
const char *AppearanceSettingsPage::kIconSizeTabbarLargeMode = "icon_size_tabbar_large_mode";
|
||||
const char *AppearanceSettingsPage::kIconSizePlayControlButtons = "icon_size_play_control_buttons";
|
||||
const char *AppearanceSettingsPage::kIconSizePlaylistButtons = "icon_size_playlist_buttons";
|
||||
@@ -196,7 +197,8 @@ void AppearanceSettingsPage::Load() {
|
||||
ui_->checkbox_background_image_keep_aspect_ratio->setEnabled(ui_->checkbox_background_image_stretch->isChecked());
|
||||
ui_->checkbox_background_image_do_not_cut->setEnabled(ui_->checkbox_background_image_stretch->isChecked() && ui_->checkbox_background_image_keep_aspect_ratio->isChecked());
|
||||
|
||||
ui_->spinbox_icon_size_tabbar_large_mode->setValue(s.value(kIconSizeTabbarLargeMode, 32).toInt());
|
||||
ui_->spinbox_icon_size_tabbar_small_mode->setValue(s.value(kIconSizeTabbarSmallMode, 32).toInt());
|
||||
ui_->spinbox_icon_size_tabbar_large_mode->setValue(s.value(kIconSizeTabbarLargeMode, 40).toInt());
|
||||
ui_->spinbox_icon_size_play_control_buttons->setValue(s.value(kIconSizePlayControlButtons, 32).toInt());
|
||||
ui_->spinbox_icon_size_playlist_buttons->setValue(s.value(kIconSizePlaylistButtons, 20).toInt());
|
||||
ui_->spinbox_icon_size_left_panel_buttons->setValue(s.value(kIconSizeLeftPanelButtons, 22).toInt());
|
||||
@@ -264,6 +266,7 @@ void AppearanceSettingsPage::Save() {
|
||||
s.setValue(kTabBarGradient, ui_->tabbar_gradient->isChecked());
|
||||
s.setValue(kTabBarColor, current_tabbar_bg_color_);
|
||||
|
||||
s.setValue(kIconSizeTabbarSmallMode, ui_->spinbox_icon_size_tabbar_small_mode->value());
|
||||
s.setValue(kIconSizeTabbarLargeMode, ui_->spinbox_icon_size_tabbar_large_mode->value());
|
||||
s.setValue(kIconSizePlayControlButtons, ui_->spinbox_icon_size_play_control_buttons->value());
|
||||
s.setValue(kIconSizePlaylistButtons, ui_->spinbox_icon_size_playlist_buttons->value());
|
||||
|
||||
@@ -68,6 +68,7 @@ class AppearanceSettingsPage : public SettingsPage {
|
||||
static const char *kTabBarGradient;
|
||||
static const char *kTabBarColor;
|
||||
|
||||
static const char *kIconSizeTabbarSmallMode;
|
||||
static const char *kIconSizeTabbarLargeMode;
|
||||
static const char *kIconSizePlayControlButtons;
|
||||
static const char *kIconSizePlaylistButtons;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>674</width>
|
||||
<height>896</height>
|
||||
<height>1030</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -442,7 +442,7 @@
|
||||
<layout class="QHBoxLayout" name="layout_groupbox_icon_sizes">
|
||||
<item>
|
||||
<layout class="QGridLayout" name="layout_icon_sizes">
|
||||
<item row="2" column="0">
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_icon_size_playlist_buttons">
|
||||
<property name="text">
|
||||
<string>Playlist buttons</string>
|
||||
@@ -450,23 +450,20 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_icon_size_tabbar_large_mode">
|
||||
<property name="text">
|
||||
<string>Tabbar large mode</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_icon_size_play_control_buttons">
|
||||
<property name="text">
|
||||
<string>Play control buttons</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QSpinBox" name="spinbox_icon_size_configure_buttons">
|
||||
<property name="minimum">
|
||||
<number>16</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>64</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<item row="2" column="1">
|
||||
<widget class="QSpinBox" name="spinbox_icon_size_play_control_buttons">
|
||||
<property name="minimum">
|
||||
<number>16</number>
|
||||
@@ -476,7 +473,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<item row="4" column="1">
|
||||
<widget class="QSpinBox" name="spinbox_icon_size_left_panel_buttons">
|
||||
<property name="minimum">
|
||||
<number>16</number>
|
||||
@@ -486,7 +483,14 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="label_icon_size_configure_buttons">
|
||||
<property name="text">
|
||||
<string>Configure buttons</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QSpinBox" name="spinbox_icon_size_playlist_buttons">
|
||||
<property name="minimum">
|
||||
<number>16</number>
|
||||
@@ -496,29 +500,42 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_icon_size_configure_buttons">
|
||||
<property name="text">
|
||||
<string>Configure buttons</string>
|
||||
<item row="5" column="1">
|
||||
<widget class="QSpinBox" name="spinbox_icon_size_configure_buttons">
|
||||
<property name="minimum">
|
||||
<number>16</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>64</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_icon_size_left_panel_buttons">
|
||||
<property name="text">
|
||||
<string>Files, playlists and queue buttons</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QSpinBox" name="spinbox_icon_size_tabbar_large_mode">
|
||||
<property name="minimum">
|
||||
<number>16</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>64</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_icon_size_tabbar_large_mode">
|
||||
<widget class="QLabel" name="label_icon_size_tabbar_small_mode">
|
||||
<property name="text">
|
||||
<string>Tabbar large mode</string>
|
||||
<string>Tabbar small mode</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QSpinBox" name="spinbox_icon_size_tabbar_large_mode">
|
||||
<widget class="QSpinBox" name="spinbox_icon_size_tabbar_small_mode">
|
||||
<property name="minimum">
|
||||
<number>16</number>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user