make it nicer

This commit is contained in:
Jakub Jezek 2021-10-29 17:43:21 +02:00
parent 319dcaf2e6
commit 2792750d25
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -105,10 +105,12 @@ class FlameLabel(QtWidgets.QLabel):
'QLabel:disabled {color: #6a6a6a}')
elif label_type == 'background':
self.setAlignment(QtCore.Qt.AlignCenter)
self.setStyleSheet('color: #9a9a9a; background-color: #393939; font: 14px "Discreet"')
self.setStyleSheet(
'color: #9a9a9a; background-color: #393939; font: 14px "Discreet"')
elif label_type == 'outline':
self.setAlignment(QtCore.Qt.AlignCenter)
self.setStyleSheet('color: #9a9a9a; background-color: #212121; border: 1px solid #404040; font: 14px "Discreet"')
self.setStyleSheet(
'color: #9a9a9a; background-color: #212121; border: 1px solid #404040; font: 14px "Discreet"')
class FlameLineEdit(QtWidgets.QLineEdit):
@ -192,7 +194,7 @@ def main_window(selection):
def _seconds(value):
if isinstance(value, str):
_zip_ft = zip((3600, 60, 1, 1/framerate), value.split(':'))
_zip_ft = zip((3600, 60, 1, 1 / framerate), value.split(':'))
return sum(f * float(t) for f, t in _zip_ft)
elif isinstance(value, (int, float)):
return value / framerate
@ -450,6 +452,7 @@ def scope_sequence(selection):
import flame
return any(isinstance(item, flame.PySequence) for item in selection)
def get_media_panel_custom_ui_actions():
return [
{