Analysis of Pmount opaque display and fix

For the quick fix go to end of page.

Whether the svg_bar script was done originally by Barry or Sigmund, I don't know, but the initial colour for displaying the size of an entire drive in pmount was red and the used portion was green. 

COLOR_TOTAL='#E56238'
COLOR_USED='#52B162'

#E56238 #52B162



It seems that initially, these colours were also used in /usr/lib/gtkdialog/svg_bar but that Sigmund subsequently changed that, assigning these colours:

COLOR_USED='#006793'
COLOR_TOTAL='#444444'
COLOR_TEXT='#bbbbbb'
#006793 #444444 #bbbbbb




The COLOR_TEXT colour is grey, not white as I thought and is one of the reasons for the poor visiibility of the device size.  So I changed the COLOR_TEXT value to #ffffff (white) in line 15

That's an improvement but I wish I knew how and where to make the text bold.  Sigmund, if you can/feel you can help, please respond.

I found a partial solution by changing the font-family in line 38 from "Mono" to "courier".
With these changes, I have an acceptable display, but can be bettered if text is bold. 

See attachment for before and after screenshots.


B.K. Johnson

quick fix-changes to /usr/lib/gtkdialog/svg_bar
line 15:
change COLOR_TEXT='#bbbbbb'  to COLOR_TEXT='#ffffff'
line38: change font-family:Mono to courier.


[EDIT]
The above was done while testing Fluxbox-1.5.1.  The version of svg_bar there was undated.  On returning to my regular distro, Tahrpup-5.8.3, to make the changes there, I found  that svg_bar was dated Dec 2013.  It is essentially the same but the variables are now
SVG_BAR_COLOR_USED='#006793'
SVG_BAR_COLOR_TOTAL='#444444'
SVG_BAR_COLOR_TEXT='#bbbbbb'

The lines to now modify in this version are 17 and 36
Top