some more fancy GUI fixes

This commit is contained in:
Volker Fischer 2009-09-19 17:06:04 +00:00
parent f82724743f
commit 49580ca0eb
2 changed files with 7 additions and 3 deletions

View file

@ -48,10 +48,12 @@ CChannelFader::CChannelFader ( QWidget* pNW,
pFader->setTickInterval ( AUD_MIX_FADER_MAX / 9 ); pFader->setTickInterval ( AUD_MIX_FADER_MAX / 9 );
// setup fader tag label (use white background of label) // setup fader tag label (use white background of label)
pLabel->setTextFormat ( Qt::PlainText );
pLabel->setAlignment ( Qt::AlignHCenter );
pLabel->setStyleSheet ( pLabel->setStyleSheet (
"QLabel { border: 2px solid black;" "QLabel { border: 2px solid black;"
" border-radius: 4px;" " border-radius: 4px;"
" padding: 1px;" " padding: 4px;"
" background-color: white;" " background-color: white;"
" font: bold; }" ); " font: bold; }" );
@ -103,13 +105,15 @@ void CChannelFader::SetGUIDesign ( const EGUIDesign eNewDesign )
case GD_ORIGINAL: case GD_ORIGINAL:
// fader // fader
pFader->setStyleSheet ( pFader->setStyleSheet (
"QSlider { width: 39px;" "QSlider { width: 30px;"
" border-image: url(:/png/fader/res/faderbackground.png) 10px 0px 10px 0px repeat;" " border-image: url(:/png/fader/res/faderbackground.png) 10px 0px 10px 0px repeat;"
" border-top: 10px transparent;" " border-top: 10px transparent;"
" border-bottom: 10px transparent;" " border-bottom: 10px transparent;"
" border-left: 0px transparent;" " border-left: 0px transparent;"
" border-right: 0px transparent; }" " border-right: 0px transparent; }"
"QSlider::groove { image: url(); }" "QSlider::groove { image: url();"
" padding-top: -10px;"
" padding-bottom: -15px; }"
"QSlider::handle { image: url(:/png/fader/res/faderhandle.png); }" ); "QSlider::handle { image: url(:/png/fader/res/faderhandle.png); }" );
// mute button // mute button

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB