Suggested codelines

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#16 Post by SFR »

Hey zigbert.

I like your refreshed and classy pmount & gtkdialog-splash.

Minor issue with gtkdialog-splash:
I don't know if it's only me (Lupuplus-528.005), but -fg parameter doesn't work.
Anyway, the addition of color='"'${fg}'"' makes it running fine.
Line 336:

Code: Select all

          <label>"<b><span color='"'${fg}'"' size='"'${fontsize}'"'>'${text}'</span></b>"</label>
Keep it up, I'm waiting for more mods. :D

Thanks & Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#17 Post by zigbert »

SRF
Thank you.
I uploaded a new version. See here

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#18 Post by zigbert »

My alternative pmount is updated
- to reflect the latest changes in woof-pmount.
- Fix correct size of used-space-bar


http://murga-linux.com/puppy/viewtopic. ... 166#619166

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#19 Post by zigbert »

My alternative gtkdialog-splash is uploaded.
See here

It includes fixes for placement and some new attributes.


Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#20 Post by zigbert »

SFR found a debug-line in my alternative gtkdialog-splash.
Now fixed and re-uploaded
See here


Sigmund

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

how to get foreground color working ?

#21 Post by charlie6 »

Hi Sigmund,
thanks for this usefull apps !!

Here running whezzy-3.5.2.5 having gtkdialog-splash version 130212 in it (might be the latest).

... I use it now to display reminder messages for action items launched from Osmo (Menu/Task/Advanced etc ...) :D

I can only get black color for the displayed text, whatever the -fg setting.

I dug into gtkdialog-splash script to look for SFR's workaround, and how to insert it ...but nothing found nor working.

Launching the following command lines results in black text on grey background:
sh-3.00# gtkdialog-splash -fg black -text "TEXT"
EXIT="Exit on mouse-over"
sh-3.00# gtkdialog-splash -fg white -text "TEXT"
EXIT="Exit on mouse-over"
sh-3.00# gtkdialog-splash -fg red -text "TEXT"
EXIT="Exit on mouse-over"
sh-3.00#
Maybe i missed something
Thanks for any advice.
Charlie

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#22 Post by zigbert »

Charlie
Now fixed and re-uploaded
See here


Sigmund

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

gtkdialog-splash icon_width setting

#23 Post by charlie6 »

Hi Sigmund,
The -fg update works nice ! thanks a lot.

I have also tried to set the -icon_width parameter to various sizes ranging from 10 to 500 pixels on a /usr/share/pixmap/ icon ... but the displayed size might keep being circa the default 32 pixel size.
sh-3.00# gtkdialog-splash -icon /usr/share/pixmaps/gnumeric/gnumeric-about.png -icon_width 100 -fontsize 72 -fg white -text "TEXT"
Have i missed some syntax?
Thanks again for replying
Charlie

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#24 Post by SFR »

Hey Charlie6 & Zigbert

It seems that -icon_width must be used before -icon, because -icon option (which actually sets the width) is parsed earlier in the code, so if -icon_width is supplied later, the width of the icon remains as the default 32px.

Code: Select all

gtkdialog-splash -icon_width 100 -icon /usr/share/pixmaps/gnumeric/gnumeric-about.png -fontsize 72 -fg white -text "TEXT"
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#25 Post by charlie6 »

Hi SFR,
SFR wrote:It seems that -icon_width must be used before -icon ,...
ooops...! tons of thanks ...tested OK.
Charlie

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#26 Post by charlie6 »

Hi,
last edited: Oooops !.... i forgot to mention that the hereunder mentionned «/usr/bin/yaf-splash» command is, of course, a symlink to /usr/bin/gtkdialog-splash script.

...just for information: the following settings work:
# yaf-splash -bg "#EE9F1F"
for extra color settings, not just only red, yellow, green, etc...
# yaf-splash -bg red -bg_gradient false -border false -placement top-right -fontsize 16 -text "Here you might place whatever text you would like, that's to say «Here you might place whatever text you would like»"
long text is placed within double-quotes for display of long text

hope this might help :)
Charlie
Attachments
yaf text.png
(8.9 KiB) Downloaded 561 times
Last edited by charlie6 on Wed 26 Jun 2013, 14:37, edited 2 times in total.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#27 Post by zigbert »

It is great that gtksplash works, but in fact it is a bit outdated already. A svg-splash would give a much better control over the cosmetics...

Anyone?

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

gtkdialog-splash rounded corners + margin

#28 Post by charlie6 »

Hi,
yet seeking for some more fine tuning ...
how could one get rounded corners (as ist in raring-5.6.94 ...);
and also set the margin (setting -margin 5 or whatever returns the same result...?)
thanks for answering!
charlie
Attachments
text.png
(11.22 KiB) Downloaded 537 times

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#29 Post by 01micko »

zigbert wrote:It is great that gtksplash works, but in fact it is a bit outdated already. A svg-splash would give a much better control over the cosmetics...

Anyone?
I actually toyed with that quite awhile ago. The problem I came across was rendering CJK fonts as the char widths vary. It did look good though but I'm afraid I abandoned and deleted the work!

It would surely be more flexible and faster than passing a wrapper script through an already slowish program (gtkdialog).
Puppy Linux Blog - contact me for access

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

rounded corners: gtksplash-dialog running in icewm wm

#30 Post by charlie6 »

Hi,
here currently using icewm-1.3.7 as window manager on wheezy-3.5.2.5.

Rounded corners (see "nice to have" in my above post) on window boxes come as default with recent jwm versions (i.e. version 819) - (thanks to Barry and Pemasu answering my question).

Icewm windows produced by gtkdialog-splash come with sharp corners.
As far as i could dig into icewm manual pages, i did'nt yet find references to rounded corners settings.
Moreover, it seems that the window-edge/text margins are bigger in icewm than in jwm.

Thanks for any advice or additional information.
Cheers, charlie

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#31 Post by zigbert »

My alternative pmount is updated to reflect changes in woof-pmount (16.feb 2013). - f2fs support


http://murga-linux.com/puppy/viewtopic. ... 166#619166

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#32 Post by bigpup »

Not sure what is causing this, but would think it has something to do with Pmount.
http://www.murga-linux.com/puppy/viewto ... 351#715351
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#33 Post by zigbert »

bigpup
First: I am not the maintainer of Pmount ! - I have made an alternative gui.

Now the answer. :)
your sda5 is mounted on /initrd/mnt/dev_save with a link to /mnt/home. This is always the 'home' of the Puppy savefile.


Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#34 Post by zigbert »

Nathans wallpaper app - now scalable
Attachments
wallpaper-0.6.4.pet
(10.02 KiB) Downloaded 546 times

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#35 Post by musher0 »

zigbert wrote:Nathans wallpaper app - now scalable
Hi, zigbert.

Clear to use. Nicely done. Thanks.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply