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

Breeze dark theme desktop icons font color and background

Tags: kubuntu kubuntu kubuntu
(comma "," separated)
dubaku
Registered Member
Posts
6
Karma
0
Hi to everyone!

I have kubuntu 15.10 installed and on the desktop the icon texts has strange color and also background color. Please check the img what I attached.
I would like to change the text color to white and also turn off the text background color.
I tried to change themes to see if it change something, I tried breeze and oxygen theme, but the text background always stay.
I also tried to find this in the theme files, guess what, nothing!
Image
dubaku
Registered Member
Posts
6
Karma
0
Ok what I understood in the last few days, if I change theme then the icon text or background color can change regarding of the actual theme. So I just need to copy a theme what I like and modify the theme files to my needings. Question is, which file contain the above mentioned rules? (desktop icon text and background color)
Any help appriciated!
dubaku
Registered Member
Posts
6
Karma
0
This could be my goal, but how can it be?
Image
dubaku
Registered Member
Posts
6
Karma
0
Is it really this hard question, or did I write something ununderstandable thing?
User avatar
Rog131
Registered Member
Posts
828
Karma
10
Help us to help

It is a bit easier to help if you tell:

- Plasma desktop version ( kinfocenter will show this )
- Plasma Layout (desktop/folderview)


At here:

Desktop: KDE Plasma 5.6.2
Plasma layout: Folder view

Will show:

Image

Full image: http://i.imgur.com/i5LwTid.gifv
dubaku
Registered Member
Posts
6
Karma
0
Thanks your reply, sorry that I didn't mentioned.
Plasma version: 5.4.2
Plasma Layout: folderview-location:show the desktop folder
User avatar
Rog131
Registered Member
Posts
828
Karma
10
dubaku wrote:Thanks your reply, sorry that I didn't mentioned.
Plasma version: 5.4.2
Plasma Layout: folderview-location:show the desktop folder


Note !
- I don't have the plasma 5.4 anymore. The oldest version witch I have is the plasma 5.5. This example is with the plasma 5.5.
- I have edited the plasma qml code. Updates to the plasma will overwrite the edits.


Editing the FolderItemDelegate.qml. With the Arch Linux the path is: /usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml


Folderview text background

Note ! The text background was removed from the plasma 5.6

Searching: 'id: textBackground'
Image

At the end of the 'textBackground' is the opacity setting. Default is 0.4.
Image
Full image: http://i.imgur.com/Ebefru7.png

Changing:
Code: Select all
opacity: 0.0


Stop the plasmashell (KRunner)
Code: Select all
kquitapp5 plasmashell

Restart plasmashell:
Code: Select all
plasmashell


The text background is transparent:
Image
Full image: http://i.imgur.com/JJgjhIq.png


Folderview text color

The folderview text color should follow the plasma theme color settings: https://techbase.kde.org/Development/Tu ... ils#Colors

If those doesn't work there is an option to set (hardcode) the color from the label qml block.

Searching: 'id: label'

At the end of block is the label color setting ( read from the plasma theme ):
Code: Select all
color: PlasmaCore.ColorScope.textColor

Disabling this and setting the color to the red:
Code: Select all
color: "red"


Image
Full image: http://i.imgur.com/U6LOCKK.png

color QML Basic Type: http://doc.qt.io/qt-5/qml-color.html
dubaku
Registered Member
Posts
6
Karma
0
Thanks Rog131!

Excellent post, it just contains everything what I needed!
I'm a beginner in linux, but with your help I changed the text bg and the text color, without your help I never find these files.

I'm really appreciate your time and help!
User avatar
Rog131
Registered Member
Posts
828
Karma
10
Adding the 'little boxes' back

A wish: Bug 361228 - little box around filenames is missing with Plasma 5.6 - https://bugs.kde.org/show_bug.cgi?id=361228

This is with the plasma 5.14.3.

Copying the /usr/share/plasma/plasmoids/org.kde.desktopcontainment/ to the $HOME/.local/share/plasma/plasmoids/org.kde.desktopcontainment/.

Image
Editing the $HOME/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml

Adding the 'textBackground' from an older plasma (5.4) FolderItemDelegate.qml:

Image

1) Changing
Code: Select all
property Item labelArea: frameLoader.textShadow || label

to
Code: Select all
property Item labelArea: textBackground


2) Adding back the text background rectangle:

Code: Select all
                Rectangle {
                    id: textBackground

                    visible: true

                    anchors {
                        left: label.left
                        leftMargin: -units.smallSpacing
                        top: label.top
                        topMargin: -units.smallSpacing
                        right: label.right
                        rightMargin: -units.smallSpacing
                        bottom: label.bottom
                        bottomMargin: -units.smallSpacing
                    }

                    color: PlasmaCore.ColorScope.backgroundColor
                    radius: units.smallSpacing
                    opacity: 0.8
                }


Restarting the the plasmashell...

Seems to work:

Image

With the fully transparent folder widget:

Image


The 'boxes' can be shaped: http://doc.qt.io/qt-5/qml-qtquick-rectangle.html

Image


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]