Skip to content

Commit

Permalink
fixed a bug that could cause the font to be too big on some resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
razaqq committed Oct 25, 2019
1 parent 37b6e02 commit 2a0c9e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,9 @@ def fill_tables(self, players):
b = player.background
rgba = f"{b.red()}, {b.green()}, {b.blue()}, {b.alpha()}"
item.setAutoFillBackground(True)
item.setStyleSheet("QLabel { background-color: rgba("+rgba+"); }")
item.setStyleSheet("QLabel { background-color: rgba("+rgba+"); font-size: 10pt; }")
else:
item.setStyleSheet("QLabel { font-size: 10pt; }")
table.setCellWidget(y, x, item)
continue

Expand Down

0 comments on commit 2a0c9e8

Please sign in to comment.