Suggested codelines

Under development: PCMCIA, wireless, etc.
Message
Author
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 545 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)

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

#36 Post by zigbert »

PPPOE gui
Optimized for WoofCE - will not work properly in other Puppies!
/usr/sbin/pppoe_gui

Image

Code: Select all

#!/bin/sh
#Barry Kauler 2008, for Puppy Linux. Totally free script.
#130118 rodin.s: adding gettext
#131217 zigbert: gui (gtkdialog) improvements.


export TEXTDOMAIN=rp_pppoe #pppoe
export TEXTDOMAINDIR=/usr/share/locale
export OUTPUT_CHARSET=UTF-8
eval_gettext () {
  local myMESSAGE=$(gettext "$1")
  eval echo \"$myMESSAGE\"
}
export LANGORG=$LANG

export PPPOE_gui='
<window title="PPPOE" icon-name="gtk-network">
<vbox space-expand="true" space-fill="true">
  '"`/usr/lib/gtkdialog/xml_info fixed internet_connect.svg 60 "<b>PPPOE</b>" "$(gettext 'Roaring Penguin client')"`"'
  <vbox space-expand="true" space-fill="true">
    <frame> 
      <hbox>
        <text><label>"'$(gettext 'Initial configuration')' "</label></text>
        <button>
          '"`/usr/lib/gtkdialog/xml_button-icon preferences.svg big`"'
          <action>rxvt -e pppoe-setup &</action>
        </button>
      </hbox>
      <hbox>
        <text><label>"'$(gettext 'Connect now')' "</label></text>
        <button>
          '"`/usr/lib/gtkdialog/xml_button-icon internet_connect.svg big`"'
          <action>rxvt -e pppoe-start_shell &</action>
        </button>
      </hbox>
      <hbox>
        <text><label>"'$(gettext 'Disconnect now')' "</label></text>
        <button>
          '"`/usr/lib/gtkdialog/xml_button-icon internet_connect_no.svg big`"'
          <action>rxvt -e pppoe-stop_shell &</action>
        </button>
      </hbox>
      <hbox>
        <text><label>"'$(gettext 'View status')' "</label></text>
        <button>
          '"`/usr/lib/gtkdialog/xml_button-icon info.svg big`"'
          <action>rxvt -e pppoe-status_shell &</action>
        </button>
      </hbox>
    </frame>
  </vbox>
  <hbox space-expand="false" space-fill="false">
    <button>'"`/usr/lib/gtkdialog/xml_button-icon quit`"'<label>'$(gettext 'Quit')'</label></button>
  </hbox>
</vbox>
</window>
'

. /usr/lib/gtkdialog/xml_info gtk #build bg_pixmap for gtk-theme
gtkdialog -p PPPOE_gui

###END###

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

#37 Post by anikin »

This one got my attention, as I'm interested in PPPOE.
Nice GUI - modify the text as follows and it will shine:

PPPOE
Roaring Penguin Client

Setup
Connect
Disconnect
Status

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

#38 Post by zigbert »

These are
/usr/local/lib/pixmaps/closebox_outline48.png
/usr/local/lib/pixmaps/locked_outline48.png


Image Image


Image


Image Image
Last edited by zigbert on Fri 28 Feb 2014, 09:16, edited 2 times in total.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#39 Post by sc0ttman »

Zigbert, does your updated pmount include support for exfat partitions? (I updated mine, uses fuse-exfat/mount.exfat to get it working... but it's a hack more than anything... )
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

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

#40 Post by zigbert »

sc0ttman
My alternative Pmount has no other features than the original Pmount. It is a simple gui rewrite.

If you want to improve it, you'll find it on github as a part of woof-CE.


Sigmund

Post Reply