mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-15 06:45:48 +00:00
add background settings to the tooltip
This commit is contained in:
@ -47,6 +47,10 @@ class Tooltip():
|
||||
values = ptmTooltip['values']
|
||||
maxOne = [100.0, 100.0]
|
||||
bounds['down'] = 1.0
|
||||
if (colors['background'] != "null"):
|
||||
widget.setBackgroundBrush(QColor(colors['background']))
|
||||
else:
|
||||
widget.setBackgroundBrush(QBrush(Qt.NoBrush))
|
||||
for value in values['down']:
|
||||
if (bounds['down'] < value):
|
||||
bounds['down'] = value
|
||||
|
Reference in New Issue
Block a user