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

customize plasma notes background

Tags: None
(comma "," separated)
duns
Registered Member
Posts
78
Karma
0
OS

customize plasma notes background

Sun Jun 16, 2019 7:48 am
It's possible to customize plasma notes background (beyond "white", "black", "red", "orange", "yellow", "green", "blue", "pink", "translucent")?
I tried to modify something in /usr/share/plasma/plasmoids/org.kde.plasma.notes/ but without success ...

EDIT

It should be so easy to modify the background, as long as the plasma notes are html files, so easily modifiable via css: why not do so, I ask? Why modifications made are always rejected by KDE plasma? Customization is important!

EDIT

Modified, but unsuccessfully, main.qml
Code: Select all
  style: PlasmaStyle.TextAreaStyle {
  //this is deliberately _NOT_ the theme color as we are over a known bright background
  //an unknown colour over a known colour is a bad move as you end up with white on yellow
  textColor: plasmoid.configuration.color === "black" ? "#dfdfdf" : "#202020"
  backgroundColor: plasmoid.configuration.color === "yellow" ? "#c7c5bd" : "#c7c5bd"    // row added       
  }


Thank you
airdrik
Registered Member
Posts
1854
Karma
5
OS
Another option could be to create your own desktop theme which overrides the notes backgrounds. It looks like they are defined in the theme's widgets/notes.svg file (see /usr/share/plasma/desktoptheme/default/widgets/notes.svgz).


airdrik, proud to be a member of KDE forums since 2008-Dec.
duns
Registered Member
Posts
78
Karma
0
OS
airdrik wrote:Another option could be to create your own desktop theme which overrides the notes backgrounds. It looks like they are defined in the theme's widgets/notes.svg file (see /usr/share/plasma/desktoptheme/default/widgets/notes.svgz).


Thank you. But notes.svgz doesn't seems a plasma note (plasmoid widget): is it?
If it's so, could you tell me how should I do? There is a guide?
airdrik
Registered Member
Posts
1854
Karma
5
OS
Theme elements are for the most part defined using SVG images (svgz just means it's also compressed). You'll need either an image editor which handles vector graphics like Inkscape, or since svg is an xml-based format you can open them up in a text editor and edit the xml directly.

There's a tutorial for making your own plasma theme at: https://techbase.kde.org/Development/Tu ... sma4/Theme


airdrik, proud to be a member of KDE forums since 2008-Dec.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]