I use konsole a lot. There is one problem though. The scrollbar by default is practically invisible in non-plasma environments like xfce.

I've developed a patch for making the scrollbar and its handle visible for my personal use. I'm wondering if I should include the patch in the book as an optional patch. There is one caveat. If a user wants colors different from what I've chosen (light gray with 2px white border, dark gray handle), it requires editing the patch and rebuilding the app.

The question is whether I should include this in the book, add it to the user notes, write a hint, or do nothing. The patch is below.

Comments?

  -- Bruce

--- konsole-18.12.2/src/TerminalDisplay.cpp.orig 2019-02-24 13:51:30.814774887 -0600 +++ konsole-18.12.2/src/TerminalDisplay.cpp 2019-02-24 13:55:23.819802401 -0600
@@ -142,7 +142,7 @@
     // Mostly just fix the scrollbar
// this is a workaround to add some readability to old themes like Fusion // changing the light value for button a bit makes themes like fusion, windows and oxygen way more readable and pleasing
-
+/*
     QPalette p = QApplication::palette();

     QColor buttonTextColor = _colorTable[DEFAULT_FORE_COLOR];
@@ -163,6 +163,13 @@
     setPalette(p);

     _scrollBar->setPalette(p);
+*/
+    _scrollBar->setStyleSheet( QLatin1String(
+      "QScrollBar:vertical {"
+          "background: #ccc; border-left: 2px solid white}"
+      "QScrollBar::handle:vertical {"
+          "background: #888; min-height: 30px; margin: 15px;}"
+    ) );

     update();
 }
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to