
Uniform GTK3 And QT Appearance
Original
Dolphin Service Menus gtk look uniform
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
DO NOT INSTALL THROUGH DOLPHIN, DOWNLOAD THE ARCHIVE AND EXECUTE THE SCRIPT "INSTALL.sh"
THIS ADD-ON REQUIRES THE "MLOCATE" PACKAGE.
with this add-on it is possible to better integrate gtk applications in the Plasma desktop, simply by changing automatically the background color of the gtk theme with that of the plasma theme.
It works with gtk themes installed by default in plasma, but it is not certain that it works with external themes, due to the possible use of svg.
this add-on does not change the color of the text, and for this reason you must first set a white-based theme (breeze) or a black-based theme (breeze dark) in the plasma settings menu, in order not to lose the contrast.
atymorek
1 year ago
$ GTK3CurrentColor=$(sed -n '/.menubar {/,/\}/p' "$Posizione$CartellaGTK3"/gtk.css | grep -m1 "background")
$ echo $GTK3CurrentColor
background-color: @theme_bg_color; }
Finally I changed
# GTK3CurrentColor=$(sed -n '/.menubar {/,/\}/p' "$Posizione$CartellaGTK3"/gtk.css | grep "@define-color theme_bg_color" | grep -o "\#......" )
to
GTK3CurrentColor=$(cat "$Posizione$CartellaGTK3"/gtk.css | grep "@define-color" | grep "theme_bg_color" | grep -o "#......")
and it worked
Report
atymorek
1 year ago
Report
d3xt3r
1 year ago
@Skeleton21, could you develop a Dolphin menu service to format a removable USB disk? In the past there was a great and practical solution in the tray bar (https://www.linux-apps.com/content/show.php/Quick+Usb+Formatter?content=137493).
Taking the subject, you could develop something to rename a file or folder on the Plasma desktop with a mouse click on the file or folder name, this is possible in Dolphin, but not on the Plasma desktop! :(
Report
skeleton21
1 year ago
However to create it I need to rely on a program to format the usb, do you know any program? I was thinking of "mintstick" but it's in gtk and I'd rather use one in qt instead.
For the problem of renaming, I don't know how to help you. however you can press "F2" (or set a custom shortcut) to rename the selected file.
about my addon, what do you think? it works?
Report
d3xt3r
1 year ago
I have no problem using MintStick, it would be nice if you could use KDE Partition Manager.
Regarding the possibility of renaming a file or folder on the Plasma desktop with a mouse click on the name, I thought it would be easier, as there is already such a feature in Dolphin, just having to integrate it into the desktop, but I am not a programmer, I am a simple user.
I am using and getting used to your tip, renaming the files using the F2 key, but I confess that I find it more practical to click with the mouse on the file name, because I am used to doing this in Mint and Windows ...
Thank you so much for your attention and for making things more practical on Dolphin / Plasma!
Report
skeleton21
1 year ago
I preferred not to use kde partition manager because it can do serious damage if used incorrectly and makes formatted partitions owned by the root user, if you choose to format them in ext4 or similar.
however, if you want to add the kde partition manager option to the removable device notifier, just go to: System settings > Removable storage > Action > add > set the name you want > copy this (https://i.imgur.com/oCPzX9w.png)
this is the results: https://i.imgur.com/MMKCnu9.png
if the menu does not appear instantly, you need to logout and login from the account (or reboot).
Report
d3xt3r
1 year ago
Report
skeleton21
1 year ago
in the future I think I will replace mintstick with something else.
however, why do you need to format from the menu? if it's just to remove all the files, you'll ruin it with time.
A better solution is to select all the files and then press "SHIFT + DEL", to delete them instantly.
Report