New slider style

This commit is contained in:
Jordan Sherer 2018-07-13 14:43:57 -04:00
parent a96216e2f8
commit 9117ad5381
2 changed files with 71 additions and 3 deletions

View File

@ -5577,8 +5577,6 @@ void MainWindow::prepareBeacon(){
QString message = QString("DE %1 %2\nDE %1 %2").arg(m_config.my_callsign()).arg(m_config.my_grid().mid(0, 4));
//ui->extFreeTextMsgEdit->setPlainText(message);
addMessageText(message);
ui->startTxButton->setChecked(true);

View File

@ -1409,13 +1409,83 @@ background:yellow;
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_9">
<property name="leftMargin">
<number>4</number>
</property>
<item>
<widget class="QSlider" name="outAttenuation">
<property name="minimumSize">
<size>
<width>50</width>
<height>0</height>
</size>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="toolTip">
<string>Adjust Tx audio level</string>
</property>
<property name="styleSheet">
<string notr="true">selection-background-color: rgb(70, 70, 70);</string>
<string notr="true">QSlider::groove:vertical
{
border: 1px solid #bbb;
background: white;
width: 10px;
border-radius: 2px;
}
QSlider::sub-page:vertical
{
background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #fff, stop: 0.4999 #eee, stop: 0.5 #ddd, stop: 1 #eee );
border: 1px solid #777;
width: 10px;
border-radius: 2px;
}
QSlider::add-page:vertical {
background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #78d, stop: 0.4999 #46a, stop: 0.5 #45a, stop: 1 #238 );
border: 1px solid #777;
border-radius: 2px;
width: 10px;
}
QSlider::handle:vertical {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #eee, stop:1 #ccc);
border: 1px solid #777;
width: 20px;
height:20px;
margin-top: -1px;
margin-bottom: -1px;
margin-left:-5px;
margin-right:-5px;
border-radius: 2px;
}
QSlider::handle:vertical:hover {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fff, stop:1 #ddd);
border: 1px solid #444;
border-radius: 2px;
}
QSlider::sub-page:vertical:disabled {
background: #bbb;
border-color: #999;
}
QSlider::add-page:vertical:disabled {
background: #eee;
border-color: #999;
}
QSlider::handle:vertical:disabled {
background: #eee;
border: 1px solid #aaa;
border-radius: 2px;
}</string>
</property>
<property name="maximum">
<number>450</number>