summaryrefslogtreecommitdiffstats
path: root/src/qt_qt_wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt_qt_wrapper.cpp')
-rw-r--r--src/qt_qt_wrapper.cpp25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp
index fd7e8c1..e7644dd 100644
--- a/src/qt_qt_wrapper.cpp
+++ b/src/qt_qt_wrapper.cpp
@@ -1227,12 +1227,35 @@ void drawScrollBarSlider(GdkWindow* window, GtkStyle* style, GtkStateType state,
int wCorrected = w;
int hCorrected = h;
+ int xOffset = 0;
+ int yOffset = 0;
if (isDomino)
{
if (orientation == GTK_ORIENTATION_HORIZONTAL)
wCorrected = w + 14;
else
hCorrected = h + 14;
+ } else if (isKeramik) {
+ if (orientation == GTK_ORIENTATION_HORIZONTAL) {
+ wCorrected = w + 3;
+ hCorrected = h - 1;
+ yOffset = 1;
+ } else {
+ wCorrected = w - 1;
+ hCorrected = h + 3;
+ xOffset = 1;
+ }
+ }
+ if (mozillaFix) {
+ if (orientation == GTK_ORIENTATION_HORIZONTAL) {
+ hCorrected-= 2;
+ wCorrected-= 1;
+ yOffset+= 1;
+ } else {
+ wCorrected-= 2;
+ hCorrected-= 1;
+ xOffset+= 1;
+ }
}
TQPixmap pixmap(wCorrected, hCorrected);
TQPainter painter(&pixmap);
@@ -1294,7 +1317,7 @@ void drawScrollBarSlider(GdkWindow* window, GtkStyle* style, GtkStateType state,
gdk_draw_drawable(window, style->bg_gc[state], pix, 0, endsSkip, x, y, w, h-1);
}
else
- gdk_draw_drawable(window, style->bg_gc[state], pix, 0, 0, x, y, w, h);
+ gdk_draw_drawable(window, style->bg_gc[state], pix, 0, 0, x+xOffset, y+yOffset, w, h);
g_object_unref(pix);
}