Add setting for OSD Pretty fading
This commit is contained in:
@@ -197,6 +197,9 @@ void NotificationsSettingsPage::Load() {
|
||||
ui_->notifications_bg_preset->setCurrentIndex(2);
|
||||
ui_->notifications_bg_preset->setItemData(2, QColor(color), Qt::DecorationRole);
|
||||
ui_->notifications_disable_duration->setChecked(pretty_popup_->disable_duration());
|
||||
|
||||
ui_->notifications_fading->setChecked(pretty_popup_->fading());
|
||||
|
||||
UpdatePopupVisible();
|
||||
|
||||
Init(ui_->layout_notificationssettingspage->parentWidget());
|
||||
@@ -236,6 +239,7 @@ void NotificationsSettingsPage::Save() {
|
||||
s.setValue("popup_pos", pretty_popup_->popup_pos());
|
||||
s.setValue("font", pretty_popup_->font().toString());
|
||||
s.setValue("disable_duration", ui_->notifications_disable_duration->isChecked());
|
||||
s.setValue("fading", ui_->notifications_fading->isChecked());
|
||||
s.endGroup();
|
||||
|
||||
}
|
||||
|
||||
@@ -284,13 +284,6 @@
|
||||
<string>Pretty OSD options</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="layout_notifications_pretty_group">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Background opacity</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" colspan="2">
|
||||
<widget class="QSlider" name="notifications_opacity">
|
||||
<property name="orientation">
|
||||
@@ -305,6 +298,34 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Text options</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QPushButton" name="notifications_font_choose">
|
||||
<property name="text">
|
||||
<string>Choose font...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QPushButton" name="notifications_fg_choose">
|
||||
<property name="text">
|
||||
<string>Choose color...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Background opacity</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QComboBox" name="notifications_bg_preset">
|
||||
<item>
|
||||
@@ -324,24 +345,10 @@
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<item row="3" column="0">
|
||||
<widget class="QCheckBox" name="notifications_fading">
|
||||
<property name="text">
|
||||
<string>Text options</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QPushButton" name="notifications_fg_choose">
|
||||
<property name="text">
|
||||
<string>Choose color...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QPushButton" name="notifications_font_choose">
|
||||
<property name="text">
|
||||
<string>Choose font...</string>
|
||||
<string>Enable fading</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user