forked from openlp/openlp
Applied changes as superfly suggested
This commit is contained in:
parent
985717edb4
commit
9c6e007ed3
@ -247,7 +247,7 @@ class AdvancedTab(SettingsTab):
|
|||||||
self.service_name_time.timeChanged.connect(self.update_service_name_example)
|
self.service_name_time.timeChanged.connect(self.update_service_name_example)
|
||||||
self.service_name_edit.textChanged.connect(self.update_service_name_example)
|
self.service_name_edit.textChanged.connect(self.update_service_name_example)
|
||||||
self.service_name_revert_button.clicked.connect(self.on_service_name_revert_button_clicked)
|
self.service_name_revert_button.clicked.connect(self.on_service_name_revert_button_clicked)
|
||||||
self.default_color_button.colorChanged.connect(self.on_default_color_button_changed)
|
self.default_color_button.colorChanged.connect(self.on_background_color_changed)
|
||||||
self.default_browse_button.clicked.connect(self.on_default_browse_button_clicked)
|
self.default_browse_button.clicked.connect(self.on_default_browse_button_clicked)
|
||||||
self.default_revert_button.clicked.connect(self.on_default_revert_button_clicked)
|
self.default_revert_button.clicked.connect(self.on_default_revert_button_clicked)
|
||||||
self.alternate_rows_check_box.toggled.connect(self.on_alternate_rows_check_box_toggled)
|
self.alternate_rows_check_box.toggled.connect(self.on_alternate_rows_check_box_toggled)
|
||||||
@ -497,7 +497,7 @@ class AdvancedTab(SettingsTab):
|
|||||||
self.service_name_edit.setText(UiStrings().DefaultServiceName)
|
self.service_name_edit.setText(UiStrings().DefaultServiceName)
|
||||||
self.service_name_edit.setFocus()
|
self.service_name_edit.setFocus()
|
||||||
|
|
||||||
def on_default_color_button_changed(self, color):
|
def on_background_color_changed(self, color):
|
||||||
"""
|
"""
|
||||||
Select the background colour of the default display screen.
|
Select the background colour of the default display screen.
|
||||||
"""
|
"""
|
||||||
|
@ -124,7 +124,7 @@ class PlayerTab(SettingsTab):
|
|||||||
self.left_layout.addStretch()
|
self.left_layout.addStretch()
|
||||||
self.right_layout.addStretch()
|
self.right_layout.addStretch()
|
||||||
# Signals and slots
|
# Signals and slots
|
||||||
self.background_color_button.colorChanged.connect(self.on_background_color_button_changed)
|
self.background_color_button.colorChanged.connect(self.on_background_color_changed)
|
||||||
|
|
||||||
def retranslateUi(self):
|
def retranslateUi(self):
|
||||||
"""
|
"""
|
||||||
@ -138,7 +138,7 @@ class PlayerTab(SettingsTab):
|
|||||||
'Visible background for videos with aspect ratio different to screen.'))
|
'Visible background for videos with aspect ratio different to screen.'))
|
||||||
self.retranslate_players()
|
self.retranslate_players()
|
||||||
|
|
||||||
def on_background_color_button_changed(self, color):
|
def on_background_color_changed(self, color):
|
||||||
"""
|
"""
|
||||||
Set the background color
|
Set the background color
|
||||||
"""
|
"""
|
||||||
|
@ -95,7 +95,7 @@ class AlertsTab(SettingsTab):
|
|||||||
self.right_layout.addWidget(self.preview_group_box)
|
self.right_layout.addWidget(self.preview_group_box)
|
||||||
self.right_layout.addStretch()
|
self.right_layout.addStretch()
|
||||||
# Signals and slots
|
# Signals and slots
|
||||||
self.background_color_button.colorChanged.connect(self.on_background_color_button_changed)
|
self.background_color_button.colorChanged.connect(self.on_background_color_changed)
|
||||||
self.font_color_button.colorChanged.connect(self.on_font_color_button_changed)
|
self.font_color_button.colorChanged.connect(self.on_font_color_button_changed)
|
||||||
self.font_combo_box.activated.connect(self.on_font_combo_box_clicked)
|
self.font_combo_box.activated.connect(self.on_font_combo_box_clicked)
|
||||||
self.timeout_spin_box.valueChanged.connect(self.on_timeout_spin_box_changed)
|
self.timeout_spin_box.valueChanged.connect(self.on_timeout_spin_box_changed)
|
||||||
@ -113,7 +113,7 @@ class AlertsTab(SettingsTab):
|
|||||||
self.preview_group_box.setTitle(UiStrings().Preview)
|
self.preview_group_box.setTitle(UiStrings().Preview)
|
||||||
self.font_preview.setText(UiStrings().OLPV2x)
|
self.font_preview.setText(UiStrings().OLPV2x)
|
||||||
|
|
||||||
def on_background_color_button_changed(self, color):
|
def on_background_color_changed(self, color):
|
||||||
"""
|
"""
|
||||||
The background color has been changed.
|
The background color has been changed.
|
||||||
"""
|
"""
|
||||||
|
@ -64,7 +64,7 @@ class ImageTab(SettingsTab):
|
|||||||
self.right_column.setSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
|
self.right_column.setSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
|
||||||
self.right_layout.addStretch()
|
self.right_layout.addStretch()
|
||||||
# Signals and slots
|
# Signals and slots
|
||||||
self.background_color_button.colorChanged.connect(self.on_background_color_button_changed)
|
self.background_color_button.colorChanged.connect(self.on_background_color_changed)
|
||||||
|
|
||||||
def retranslateUi(self):
|
def retranslateUi(self):
|
||||||
self.background_color_group_box.setTitle(UiStrings().BackgroundColor)
|
self.background_color_group_box.setTitle(UiStrings().BackgroundColor)
|
||||||
@ -72,7 +72,7 @@ class ImageTab(SettingsTab):
|
|||||||
self.information_label.setText(
|
self.information_label.setText(
|
||||||
translate('ImagesPlugin.ImageTab', 'Visible background for images with aspect ratio different to screen.'))
|
translate('ImagesPlugin.ImageTab', 'Visible background for images with aspect ratio different to screen.'))
|
||||||
|
|
||||||
def on_background_color_button_changed(self, color):
|
def on_background_color_changed(self, color):
|
||||||
self.background_color = color
|
self.background_color = color
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user