From 49580ca0eb19e48ae8c13342516290b55fc700b8 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sat, 19 Sep 2009 17:06:04 +0000 Subject: [PATCH] some more fancy GUI fixes --- src/audiomixerboard.cpp | 10 +++++++--- src/res/faderbackground.png | Bin 2844 -> 2857 bytes 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/audiomixerboard.cpp b/src/audiomixerboard.cpp index 53b4d793..e85b0e82 100755 --- a/src/audiomixerboard.cpp +++ b/src/audiomixerboard.cpp @@ -48,10 +48,12 @@ CChannelFader::CChannelFader ( QWidget* pNW, pFader->setTickInterval ( AUD_MIX_FADER_MAX / 9 ); // setup fader tag label (use white background of label) + pLabel->setTextFormat ( Qt::PlainText ); + pLabel->setAlignment ( Qt::AlignHCenter ); pLabel->setStyleSheet ( "QLabel { border: 2px solid black;" " border-radius: 4px;" - " padding: 1px;" + " padding: 4px;" " background-color: white;" " font: bold; }" ); @@ -103,13 +105,15 @@ void CChannelFader::SetGUIDesign ( const EGUIDesign eNewDesign ) case GD_ORIGINAL: // fader pFader->setStyleSheet ( - "QSlider { width: 39px;" + "QSlider { width: 30px;" " border-image: url(:/png/fader/res/faderbackground.png) 10px 0px 10px 0px repeat;" " border-top: 10px transparent;" " border-bottom: 10px transparent;" " border-left: 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); }" ); // mute button diff --git a/src/res/faderbackground.png b/src/res/faderbackground.png index c4455b5bed822c8c8ec8afb8b0f585d22b9946c7..83410036a6a89d31716c52ad61528edc5e336385 100755 GIT binary patch delta 2752 zcmV;x3P1In7O57HVFwU69p2^+6_IEte}qXyK~z}7b(u|%B*$@vpNPz=-r2RmrPf># zFa<0vA7uF;op>-{5b&QR|BFo?EE0tGxcq>15lKUwnXbx+@F6m@s+Uv`8tAU6u8fS2 zH{Lf={_WrYBO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