mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Revise Interface section layout in Options dialog
The Language option now has its own layout since it is independent to other options (Style and Color scheme). This avoids text in Language combobox to be left out and replaced by `...` due to Style Hint text being too long. PR #22823.
This commit is contained in:
@@ -1760,9 +1760,9 @@ void OptionsDialog::initializeStyleCombo()
|
||||
m_ui->labelStyle->hide();
|
||||
m_ui->comboStyle->hide();
|
||||
m_ui->labelStyleHint->hide();
|
||||
m_ui->UISettingsBoxLayout->removeWidget(m_ui->labelStyle);
|
||||
m_ui->UISettingsBoxLayout->removeWidget(m_ui->comboStyle);
|
||||
m_ui->UISettingsBoxLayout->removeWidget(m_ui->labelStyleHint);
|
||||
m_ui->layoutStyle->removeWidget(m_ui->labelStyle);
|
||||
m_ui->layoutStyle->removeWidget(m_ui->comboStyle);
|
||||
m_ui->layoutStyle->removeWidget(m_ui->labelStyleHint);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1776,9 +1776,9 @@ void OptionsDialog::initializeColorSchemeOptions()
|
||||
#else
|
||||
m_ui->labelColorScheme->hide();
|
||||
m_ui->comboColorScheme->hide();
|
||||
m_ui->UISettingsBoxLayout->removeWidget(m_ui->labelColorScheme);
|
||||
m_ui->UISettingsBoxLayout->removeWidget(m_ui->comboColorScheme);
|
||||
m_ui->UISettingsBoxLayout->removeItem(m_ui->spacerColorScheme);
|
||||
m_ui->layoutStyle->removeWidget(m_ui->labelColorScheme);
|
||||
m_ui->layoutStyle->removeWidget(m_ui->comboColorScheme);
|
||||
m_ui->layoutStyle->removeItem(m_ui->spacerColorScheme);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -137,8 +137,8 @@
|
||||
<property name="title">
|
||||
<string>Interface</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="UISettingsBoxLayout">
|
||||
<item row="0" column="0" colspan="3">
|
||||
<layout class="QVBoxLayout" name="UISettingsBoxLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="labelRestartRequired">
|
||||
<property name="font">
|
||||
<font>
|
||||
@@ -150,17 +150,19 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layoutLanguage">
|
||||
<item>
|
||||
<widget class="QLabel" name="labelLanguage">
|
||||
<property name="text">
|
||||
<string>Language:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboLanguage"/>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<item>
|
||||
<spacer name="spacerLanguage">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Orientation::Horizontal</enum>
|
||||
@@ -173,17 +175,21 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QGridLayout" name="layoutStyle">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="labelStyle">
|
||||
<property name="text">
|
||||
<string>Style:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="comboStyle"/>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<item row="0" column="2">
|
||||
<widget class="QLabel" name="labelStyleHint">
|
||||
<property name="font">
|
||||
<font>
|
||||
@@ -192,17 +198,17 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="labelColorScheme">
|
||||
<property name="text">
|
||||
<string>Color scheme:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<item row="1" column="1">
|
||||
<widget class="QComboBox" name="comboColorScheme"/>
|
||||
</item>
|
||||
<item row="3" column="2">
|
||||
<item row="1" column="2">
|
||||
<spacer name="spacerColorScheme">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Orientation::Horizontal</enum>
|
||||
@@ -215,7 +221,9 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="3">
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="checkUseCustomTheme">
|
||||
<property name="title">
|
||||
<string>Use custom UI Theme</string>
|
||||
@@ -237,15 +245,21 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0" colspan="2">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkUseSystemIcon">
|
||||
<property name="text">
|
||||
<string>Use icons from system theme</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0" colspan="2">
|
||||
<item>
|
||||
<widget class="QPushButton" name="buttonCustomizeUITheme">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Customize UI Theme...</string>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user