This has not minimal system impact. IMHO this is a waste of process resources. If I understand correctly that what you and @geo_c are trying to do is put a gtkdialog or whatever window on top of the pinboard to permanently show some static text.
Commonly Puppy wallpapers have the distro name somewhere imprinted.
If this is a SVG wallpaper, and there are many, this would not only be a very efficient way to display a big image, this would also mean that (colored) text could be added/changed any time at any position. Could be done with a relatively simple script.
Gtkdialog Examples
Moderator: Forum moderators
- MochiMoppel
- Posts: 1109
- Joined: Mon Jun 15, 2020 6:25 am
- Location: Japan
- Has thanked: 17 times
- Been thanked: 356 times
Re: Gtkdialog Examples
- rockedge
- Site Admin
- Posts: 5704
- Joined: Mon Dec 02, 2019 1:38 am
- Location: Connecticut,U.S.A.
- Has thanked: 1983 times
- Been thanked: 2093 times
- Contact:
Re: Gtkdialog Examples
@MochiMoppel Using a SVG version of just the background is what I am intending.
- MochiMoppel
- Posts: 1109
- Joined: Mon Jun 15, 2020 6:25 am
- Location: Japan
- Has thanked: 17 times
- Been thanked: 356 times
Re: Gtkdialog Examples
@rockedge I played with the image file /usr/share/backgrounds/431-dark.svg, found in your Fossa96-radky.
Most of the SVG files have the text portion neatly added at the end, after <!-- text -->
comment.
I changed the <text> tag manually to
Code: Select all
<text style="fill:white;stroke:none;" font-family="sans" font-style="italic" font-weight="bold" font-size="38" x="70%" y="90%">Your text here</text>
, resulting in the image shown in the screenshot. Could certainly be made even fancier.
TIP: ROX-Filer can use gzipped SVG files directly as wallpaper. Just gzip any SVG file and give it a .svgz extension. This will reduce the SVG filesize considerably. (I gave the attachment a .svg.gz extension to make unzipping easier. Change to .svgz to make it digestible for ROX)
-
- Posts: 2495
- Joined: Fri Jul 31, 2020 3:37 am
- Has thanked: 1794 times
- Been thanked: 705 times
Re: Gtkdialog Examples
So as not to hi-jack this topic, I'm continuing the .svg bacground image discussion here:
https://forum.puppylinux.com/viewtopic. ... 804#p79804
geo_c
Old School Hipster, and Such
- rockedge
- Site Admin
- Posts: 5704
- Joined: Mon Dec 02, 2019 1:38 am
- Location: Connecticut,U.S.A.
- Has thanked: 1983 times
- Been thanked: 2093 times
- Contact:
Re: Gtkdialog Examples
@MochiMoppel playing around with the information you supplied:
going to set up the background directory with tip in mind.
TIP: ROX-Filer can use gzipped SVG files directly as wallpaper. Just gzip any SVG file and give it a .svgz extension. This will reduce the SVG filesize considerably. (I gave the attachment a .svg.gz extension to make unzipping easier. Change to .svgz to make it digestible for ROX)
- glene77is
- Posts: 52
- Joined: Thu Aug 13, 2020 7:44 pm
- Location: Univ of TN, Memphis,TN,USA
- Has thanked: 39 times
- Been thanked: 6 times
- Contact:
Re: Gtkdialog Examples
to Don570
Thanks for the idea . .
I have been tinkering with your script, and came up with the attached script.
Run this via Xterm to watch the workings.
# rc.z_CDW-DoubleClick.sh
# Example of gtkdialog application menu
# Example of Embedded Graphics
# Example of Quit Double-Click button
#
# graphics are gleaned from Linux:
# source: .svg and .xpm are (1) copied as text, (2) modified as text by hand.
# embedded graphics function this way: (1) installed in app, (2) echoed out by app, (3) imported by app gui <button> .
- Attachments
-
- CDW-DC_Txn_230212-1942-57-sh.zip
- Double-Click Buttons and Embeded Graphics.sh executable
- (2.73 KiB) Downloaded 29 times
*Just an old Apprentice caught Tinkering in the Master's WorkShop. *
Glen Ellis ( ͡° ͜ʖ ͡° ) K4KKQ , Electronic Engineering
Website: http://www.GeoCities.WS/glene77is
Electrical Science , Memphis, TN
Re: Gtkdialog Examples
I didn't know that double click of a button was possible.
Thanks for example.
Zigbert has some recommendations and tips --->
https://oldforum.puppylinux.com/viewtop ... =gtkdialog
Examples: double clicking on list
or double clicking on a thumbnail image will launch image viewer.
____________________________________________-
Custom color buttons for Gtkdialog
I developed a system for creating custom color buttons for Gtkdialog.
Code writers are welcome to use it in scripts.
(fake gz extension)
Notes: SVG images are stored in /tmp
You can open them with an image editor such as mtpaint.
Colors are the standard ones that SVG recognizes.
A color can have a prefix 'light' or 'dark' . Example ---> lightblue
Width of the button is automatically calculated from label text.
Instructions: Click on 'Proceed' button and then the 'Return' button.
The finished project is still available from old Puppy forum
https://oldforum.puppylinux.com/viewtop ... 41#p760041
Reference:
https://blogs.czapski.id.au/tag/gtkdialog-color
______________________________________________