Web lists-archives.com

Re: [kde] how to use kdialog --font ?




Looks like 'kdialog' supports Qt Style Sheets.
I haven't played with these before.  Appears to be a variant of CSS.

$ kdialog --stylesheet ~/tmp/kdialog.qss  --msgbox "$(lsblk)"
$ cat ~/tmp/kdialog.qss

* {
    font-family: monospace;
    font-size: 16;
}


I'm not sure if there's a way to identify the Qt components in use
​ by 'kdialog'​
.
​  (something like firefox' web developer "Inspect" would be awesome)​


​I grabbed a copy of XnView's stylesheet file:  "​XnView/UI/style_sheet.qss"
to start with.  using it unchanged renders kdialog with a nice black background,
but not monospaced, of course.

That's probably the best way to handle kdialog's failings in other areas.

There's also a Style "Theme" (--style).  I guess i have to look into this stuff more.
(this is more like the older X AppDefaults configurations to style X11 applications)

--stephen

--
Stephen Dowdy  -  Systems Administrator  -  NCAR/RAL
303.497.2869   -  sdowdy@xxxxxxxx        -  http://www.ral.ucar.edu/~sdowdy/


___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.