Registered Member
|
Hi,
how to change the size of button in KDE Plasma 5? For Example, the Configure and Apply button in System settings. Thanks, Harish Pathangay |
Manager
|
moved to Plasma 5 forum
|
Registered Member
|
One way is to use the Qt Style Sheets: http://doc.qt.io/qt-5.7/stylesheet.html Examples: - http://doc.qt.io/qt-5.7/stylesheet-examples.html - http://stackoverflow.com/questions/1938 ... ttons-size System Settings buttons with yellow background, red text, max width 50 px, max height 10 px: Starting the System Settings with:
button.qss:
=> |
Registered Member
|
Clever!
A few questions 1. How did you know about this feature of 'systemsettings5'? The command 'systemsettings5 --help' displays no such mention of this feature. 2. How do you get these settings to persist? I tried it myself, and as soon as you close the System Settings window, the changes to the button are lost. |
Registered Member
|
#1 - systemsettings5 is a KDE application but it is also a Qt application. - earlier: https://www.kubuntuforums.net/showthrea ... post363390 - the KF5 applications are not showing as many help options as the KDE4 did:
#2 - by adding the option to the menu: - by editing the sources |
Registered Member
|
Thanks for that.
However, I think the original person (and myself) are looking for a way to change the size of the button globally using the System Settings, not changing the size of the button in the System Settings application only. Is there a way to use that stylesheet globally for all Qt applications? |
Registered Member
|
If the question is: Is there an option to edit the widget styles from the KDE System settings ? By my knowledge the only option is KDE system settings > Application Style > Widget Style; Pick the widget style & configure - there are some configurable settings. There are wishes: - An easy way to apply Qstylesheets: viewtopic.php?f=90&t=88098 - Bug 164955 - Create a way to use qt style sheets (qss) for theming/styles: https://bugs.kde.org/show_bug.cgi?id=164955 Qt tools There is the: Qt5 Configuration Tool - https://www.linux-apps.com/p/1131604/ Change Qt5 application style with qt5ct: http://fixmynix.com/change-qt5-applicat ... ith-qt5ct/ |
Registered Member
|
I would infer that the simple answer is No.
But at leat then can i install kde-style-oxygen4 package in KDE 5? That way i have 2 widget styles- Oxygen5 and Oxygen 4? Is this possible? i do not want to try and messup my system. thanks, harish pathangay |
Registered Member
|
You can install it, but it will only be used by KDE4 applications. KF5/Qt5 applications will still continue to use Oxygen5. In other words, installing kde-style-oxygen4 won't change the look of KF5/Qt5 applications, as they cannot use it. And it won't add a "new" Oxygen4 style either. Maybe have a look at the "QtCurve" style, that's very configurable AFAIK. |
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar