Skip to content

Commit

Permalink
Merge pull request pyblish#37 from pypeclub/bugfix/perspective_font_s…
Browse files Browse the repository at this point in the history
…tyle

bugfix/perspective_font_style
  • Loading branch information
mkolar authored Jan 21, 2020
2 parents f68ec20 + 7d73b4b commit 6fc67ce
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions pyblish_lite/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,32 +297,26 @@ def __init__(self, parent):
header_widget = QtWidgets.QWidget()
toggle_button = QtWidgets.QToolButton(header_widget)
toggle_button.setMinimumHeight(50)

font = toggle_button.font()
font.setFamily('FontAwesome')
font.setPointSize(26)
toggle_button.setFont(font)
toggle_button.setText(delegate.icons["angle-left"])
toggle_button.setStyleSheet(
"border-bottom: 3px solid lightblue;"
"border-top: 0px;"
"border-right: 1px solid #232323;"
"border-left: 0px;"
"font-size: 26pt;"
"font-family: \"FontAwesome\";"
)
toggle_button.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)

indicator = QtWidgets.QLabel('', parent=header_widget)
indicator.setMinimumWidth(30)

name = QtWidgets.QLabel('*Name of inspected', parent=header_widget)
font = QtGui.QFont()
font.setPointSize(16)
font.setBold(True)
font.setWeight(50)
font.setKerning(True)
name.setFont(font)

indicator.setFont(font)
name.setStyleSheet(
"font-size: 16pt;"
"font-style: bold;"
"font-weight: 50;"
)

header_layout = QtWidgets.QHBoxLayout(header_widget)
header_layout.setAlignment(QtCore.Qt.AlignLeft)
Expand Down Expand Up @@ -451,6 +445,9 @@ def set_context(self, index):
elif index.data(model.HasProcessed) is True:
check_color = self.indicator_colors["ok"]
self.indicator.setStyleSheet(
'font-size: 16pt;'
'font-style: bold;'
'font-weight: 50;'
'padding: 5px;'
'background: {};color: {}'.format(
check_color['bg'], check_color['font']
Expand Down

0 comments on commit 6fc67ce

Please sign in to comment.