1
0

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:
SomberNight
2017-12-19 23:25:07 +01:00
committed by ThomasV
parent 3ba864bbca
commit ab5a142738
2 changed files with 41 additions and 6 deletions

View File

@@ -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;
}
"""
)