change tx size to label. small fix re connecting slider and feerate. slider changes look when its value is ignored.
This commit is contained in:
@@ -54,3 +54,28 @@ class FeeSlider(QSlider):
|
||||
self.setValue(pos)
|
||||
tooltip = self.get_tooltip(pos, fee_rate)
|
||||
self.setToolTip(tooltip)
|
||||
|
||||
def activate(self):
|
||||
self.setStyleSheet('')
|
||||
|
||||
def deactivate(self):
|
||||
# TODO it would be nice to find a platform-independent solution
|
||||
# that makes the slider look as if it was disabled
|
||||
self.setStyleSheet(
|
||||
"""
|
||||
QSlider::groove:horizontal {
|
||||
border: 1px solid #999999;
|
||||
height: 8px;
|
||||
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #B1B1B1, stop:1 #B1B1B1);
|
||||
margin: 2px 0;
|
||||
}
|
||||
|
||||
QSlider::handle:horizontal {
|
||||
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #8f8f8f);
|
||||
border: 1px solid #5c5c5c;
|
||||
width: 12px;
|
||||
margin: -2px 0;
|
||||
border-radius: 3px;
|
||||
}
|
||||
"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user