Hi,
I guess you can say I made a custom theme for xfce4-notes
Before applying it:
After applying it:
Unfortunately, there doesn’t seem to be a method to apply these changes locally, and so I make changes to the icon files and css in /usr/share/xfce4-notes-plugin/
The following changes are reversible, they also might not persist after upgrades so you may need to run these commands after an upgrade. It assumes you have Papirus icons installed too.
Instructions
Step 1 ) Change Font
You can do this in the settings provided in the application. I chose ‘Noto Sans Regular 10’
Step 2 ) Save patch
In whatever folder, make a file css-for-xfce4-notes.patch and place the following patch content into it:
Index: /usr/share/xfce4-notes-plugin/gtk-3.0/gtk-main.css 2021-04-07 14:00:03.512765114 +0000
Index: /usr/share/xfce4-notes-plugin/gtk-3.0/gtk-main.css 2021-04-07 17:04:44.694806281 +0000
@@ -13,29 +13,26 @@
@define-color notebook_selected_tab_color shade (@theme_base_color, 0.9);
* {
+ margin:1px;
border-width: 0px;
}
/* window and frame */
window {
- background-image: linear-gradient(to bottom,
- shade (@theme_base_color, 0.8),
- shade (@theme_base_color, 0.95) 87px);
+ background: @theme_base_color;
}
window frame {
- padding: 1px 2px 4px 2px;
- border: 1px solid shade (@theme_base_color, 0.7);
+ padding: 2px;
}
/* icon buttons in window title bar */
window widget#notes-icon-button {
- color: black;
+ color: #4d4d4d;
background-color: transparent;
}
window widget#notes-icon-button:active {
color: darker (@theme_fg_color);
- text-shadow: 1px 1px lighter (@theme_bg_color);
}
window widget#notes-icon-button:disabled {
color: shade (@insensitive_fg_color, 1.2);
@@ -126,15 +123,13 @@
}
textview > text {
- color: @theme_text_color;
- background-image: linear-gradient(to bottom,
- shade (@theme_bg_color, 1.2),
- shade (@theme_bg_color, 1.3) 20em);
+ color: #4d4d4d;
+ background: @theme_base_color;
}
textview > text > selection {
color: @theme_selected_fg_color;
- background-color: @theme_selected_bg_color;
+ background-color: #2eb398; /* for default sea theme (azul theme: #3498db, aliz:#f0544c) */
}
scrollbar {
Step 3 ) Apply patch and use Papirus icons
Run the following in the terminal:
cd /usr/share/xfce4-notes-plugin/pixmaps/
## Rename
sudo mv notes-menu.png notes-menu--BEFORE.png
sudo mv notes-menu-active.png notes-menu-active--BEFORE.png
## Create a symlink to the correct icon
sudo ln -s /usr/share/icons/Papirus/16x16/apps/accessories-notes.svg notes-menu.png
sudo ln -s /usr/share/icons/Papirus/16x16/apps/accessories-notes.svg notes-menu-active.png
cd ../gtk-3.0/
## Patch the file saving a (-b)ackup of the original. Change path/to/ to the path you stored the patch file.
sudo patch -b -i ~/path/to/css-for-xfce4-notes.patch gtk-main.css
## Get the PID of xfce4-notes...
ps -ef | grep 'xfce4-notes\|PID'
## ...and kill it (replace XXX with the PID)
kill XXX
## Reopen xfce4-notes
Step 4 ) After an update you may be compelled to add the above to a bash script.
You’ll just need to use a rewriting tool like sed to automatically extract the PID, if you want to automate that.
Maybe you like it? I definitely prefer it, anyway.