This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How I can change colors in theme?

Tags: plasma 5, theme, colors plasma 5, theme, colors plasma 5, theme, colors
(comma "," separated)
lexikon
Registered Member
Posts
17
Karma
0

How I can change colors in theme?

Fri May 20, 2016 7:51 am
How I can change color of description text in appmenu?
Image
I want set white color, but I tried change colors file in folder with theme, but its not help me
Sorry for bad eng
User avatar
Rog131
Registered Member
Posts
828
Karma
10
Plasma 5 Theming guide

Development/Tutorials/Plasma5: https://techbase.kde.org/Development/Tutorials/Plasma5
--> ThemeDetails: https://techbase.kde.org/Development/Tu ... emeDetails
-----> Colors: https://techbase.kde.org/Development/Tu ... ils#Colors

Sometimes the Plasma is using the theme from the cache: ~/.cache/. In those cases this:

Shut the plasmashell down:
Code: Select all
kquitapp5 plasmashell

Remove the plasma cache files from the ~/.cache/.
Start the plasmashell (KRunner):
Code: Select all
plasmashell

is helping at here.


Alternative - Edit the plasmoid

If everything else fails there is an option to edit the plasma qml script ( https://en.wikipedia.org/wiki/QML ) .

Example with the Kickoff:

With the Arch Linux the Kickoff/plasma-desktop 5.6.4 is installing: /usr/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/ui/KickoffItem.qml

The KickoffItem.qml has 'id: titleElement' - adding there color:
Code: Select all
            text: model.display
            color:"green"
            elide: Text.ElideRight


There is also 'id: subTitleElement' - disabling the text opacity and adding color:
Code: Select all
            text: model.description
            //opacity: isCurrent ? 0.6 : 0.3
            font.pointSize: theme.smallestFont.pointSize
            color:"red"
            elide: Text.ElideMiddle


Rebooting the plasmashell - and here the Kickoff has more color:
Image
Full Image: http://i.imgur.com/Q21aWvR.png

Notes

- Plasma desktop updates will overwrite the edits of the KickoffItem.qml
- More of the qml colors: http://doc.qt.io/qt-5/qml-color.html


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar