Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Scroll bar contrast - can it be increased?
Forum Updated to NodeBB v4.3 + New Features

Scroll bar contrast - can it be increased?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 3.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    clivesmart
    wrote on last edited by
    #1

    I am asking about the text editor. I am not talking about programming a scroll bar. I've searched online and found millions of help about programming scroll bars and text areas, but I want to change the color of the scroll bars in the Qt Creator text editor itself. I found the font and background color scheme amendment but could not find anything about the coloration of the scroll bars. I don't know whether any body else has the same problem but my scroll bar tablet (the thing you slide up and down) is white and the area above and below it is very slightly off-white. But you can't really see any contrast, and I often can't see where the tablet is. If anybody knows if it can be amended - please help. Or is it just a fixture of 5.2.0 that is difficult and annoying?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      That sounds like something your windows theme controls. I don't use Qt Creator much but I doubt there is a way to modify the scrollbars. It would be a weird almost never used option.

      If there is a way to set a stylesheet for the scrollbar at a system or even application (qt creator specific) level then you would be able to change it to whatever you liked. I don't know if there is a way to do this though.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      0
      • C Offline
        C Offline
        clivesmart
        wrote on last edited by
        #3

        Thank you. I've been to System > Preferences > Appearance on my Mate / Fedora 19 linux system and I can change the Theme of most other windows, but the Qt Creator seems to ignore those changes and have hardwired in scrollbar colors (to something like 255,255,255 / 250,250,250) brightness. Thanks though.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #4

          You can try to use "stylesheets":http://qt-project.org/wiki/QtCreatorStyling to change QtCreator appearance.
          "Here":http://qt-project.org/doc/qt-5/stylesheet-examples.html#customizing-qscrollbar is an example for QScrollBar styles.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            ambershark
            wrote on last edited by
            #5

            What window manager are you using? I find that if it is anything except KDE it doesn't always affect Qt apps. Qt apps and KDE are integrated but they don't necessarily (the qt app that is) play well with our WMs like gnome and such.

            My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

            1 Reply Last reply
            0
            • C Offline
              C Offline
              clivesmart
              wrote on last edited by
              #6

              Thank you andreyc. I have tried it and can amend the look of the scroll bar. Thanks.

              But when I add the -stylesheet parameter some of the headings go white, instead of the gray they were. See that "here":http://billionmessages.com/clivesmart/gone_white.png I have ringed round in red the discoloration. Even if I supply a blank file.css file with only newlines in it, the title bars still get changed. Any ideas?

              1 Reply Last reply
              0
              • C Offline
                C Offline
                clivesmart
                wrote on last edited by
                #7

                ambershark - I'm using MATE

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  ambershark
                  wrote on last edited by
                  #8

                  Yea qt looks don't integrate to much outside kde.

                  As for your stylesheet what happens when you apply a stylesheet is the Window manager no longer draws the item. So you need to set it up exactly how you want it to draw via the stylesheet. Kind of annoying but adding a stylesheet basically has qt draw it instead of the Wm.

                  My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved