Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Customizing the scroll bar and text input screen(s)
« previous next »
  • Print
Pages: [1]

Author Topic: Customizing the scroll bar and text input screen(s)  (Read 648 times)

Offline illegalval

  • Member
  • *
  • Posts: 30
Customizing the scroll bar and text input screen(s)
« on: October 13, 2022, 05:08:36 PM »
Hi,
does someone know if it is possible to customize the appearance of the scrollbar in a theme? I wonder the same about text input screens, like when saving an eq preset, since on my Shanling Q1 these are very tedious to use, but maybe this is a general Rockbox limitation?

/Val
Logged

Offline 7o9

  • Member
  • *
  • Posts: 117
Re: Customizing the scroll bar and text input screen(s)
« Reply #1 on: October 14, 2022, 12:40:41 AM »
You can customize the width and location of the scroll bar in Theme Settings, Status/Scrollbar.

I use the Oscar theme but moved the scrollbar to the right and made it wider which works better for me.

'Text input you cannot change in settings.

The text input is somewhat tedious indeed. The Q1 is one of few touchscreen devices and the experience is less polished than devices with lots of buttons.
« Last Edit: October 14, 2022, 12:43:12 AM by 7o9 »
Logged

Offline illegalval

  • Member
  • *
  • Posts: 30
Re: Customizing the scroll bar and text input screen(s)
« Reply #2 on: October 14, 2022, 06:26:10 AM »
I'm aware of the scrollbar settings in the settings menu :) I was more wondering about if it's possible to change the look of the scrollbar (and keyboard) when making themes, since the scrollbar always looks the same, regardless of what theme I use.
Logged

Offline 7o9

  • Member
  • *
  • Posts: 117
Re: Customizing the scroll bar and text input screen(s)
« Reply #3 on: October 14, 2022, 11:16:06 AM »
Ok, I misread your question.

I thought there was a way to theme the scrollbar but I cannot find an example.
Logged

Offline illegalval

  • Member
  • *
  • Posts: 30
Re: Customizing the scroll bar and text input screen(s)
« Reply #4 on: October 14, 2022, 06:20:06 PM »
No, i searched for it too! Would be nice to give it a theme-appropriate colour  :D
Logged

Offline illegalval

  • Member
  • *
  • Posts: 30
Re: Customizing the scroll bar and text input screen(s)
« Reply #5 on: October 15, 2022, 06:54:33 AM »
I have a feeling that somewhere in the source code it is defined what colour the scrollbar (or items "untouched" by themes) have. Maybe it's possible to change this and recompile the release?
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 641
Re: Customizing the scroll bar and text input screen(s)
« Reply #6 on: October 15, 2022, 07:36:35 AM »
I thought the scrollbar colour is just set to the same colour as 'foreground colour"?
Logged

Offline illegalval

  • Member
  • *
  • Posts: 30
Re: Customizing the scroll bar and text input screen(s)
« Reply #7 on: October 15, 2022, 09:50:22 AM »
It's never been like that for me! Hmmm, any developer who knows?
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 222
Re: Customizing the scroll bar and text input screen(s)
« Reply #8 on: October 15, 2022, 11:51:21 AM »
The scrollbar color is the foreground color that the theme has set for the UI viewport (i.e. for the list). Themes can either pick a specific color (e.g. %Vf(000000)) or use the system-wide foreground color for that (%Vf(-)).
Logged

Offline illegalval

  • Member
  • *
  • Posts: 30
Re: Customizing the scroll bar and text input screen(s)
« Reply #9 on: October 15, 2022, 03:34:25 PM »
So this actually needs to be defined in order for the scrollbar to adopt the colour? In the theme i'm using now it says "%Vf(ededed)". (None of the themes i've used has the scrollbar been in the foreground colour.)
Logged

Offline illegalval

  • Member
  • *
  • Posts: 30
Re: Customizing the scroll bar and text input screen(s)
« Reply #10 on: October 15, 2022, 03:41:03 PM »
Further down it says (000000), let's see if changing this to (-) does anything
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 222
Re: Customizing the scroll bar and text input screen(s)
« Reply #11 on: October 15, 2022, 03:52:07 PM »
You need to change it immediately after %Vi appears. Or, if the UI viewport is defined in the cfg file, it needs to be adjusted there. If no foreground color is explicitly defined for the UI viewport, it should use the global foreground color.

https://download.rockbox.org/daily/manual/rockbox-shanlingq1/rockbox-buildch12.html#x15-38400012.2.3
https://download.rockbox.org/daily/manual/rockbox-shanlingq1/rockbox-buildap4.html#x19-423000D.4
« Last Edit: October 15, 2022, 03:59:40 PM by chris_s »
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 222
Re: Customizing the scroll bar and text input screen(s)
« Reply #12 on: October 15, 2022, 04:07:47 PM »
Unfortunately, as far as I'm aware, it is currently not possible to have the text color for the UI viewport be different from the scrollbar color.
Logged

Offline illegalval

  • Member
  • *
  • Posts: 30
Re: Customizing the scroll bar and text input screen(s)
« Reply #13 on: October 15, 2022, 04:32:05 PM »
Hmm, i understand. Thanks for the great info and resources, gonna look into it.
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 641
Re: Customizing the scroll bar and text input screen(s)
« Reply #14 on: October 16, 2022, 08:57:47 AM »
Quote from: illegalval on October 15, 2022, 03:34:25 PM
So this actually needs to be defined in order for the scrollbar to adopt the colour? In the theme i'm using now it says "%Vf(ededed)". (None of the themes i've used has the scrollbar been in the foreground colour.)

Odd, that.  Whatever theme I pick the scrollbar takes the foreground colour that it sets.

It would, I presume, be possible to amend the underlying RB code to allow the possibility of setting a specific scrollbar colour, that would over-ride it taking the default foreground colour?  Would need some additional theme engine syntax, for either the cfg file or the wps/sbs file, I guess?  If anyone wanted that option badly enough.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Customizing the scroll bar and text input screen(s)
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.039 seconds with 20 queries.