Axel Etzold
2006-Sep-27 09:33 UTC
[fxruby-users] Change default background, maybe to a wallpaper design ?
Dear all, I would like to change the greyish background of the FXRuby GUI. Now, I have two questions with respect to this: I know that I can change the color of individual buttons, toolbars etc., but I''d like to know whether one can change this greyish default. using something like app.backColor = STD_BACK_COLOR didn''t do what I want... Now I recall that using RMagick, you generate something like a wallpaper tapestry (e.g., repeat a logo several times on a canvas) using commands like logo = Magick::ImageList.new(''logo:'') img = Magick::ImageList.new img.new_image(200, 100, Magick::TextureFill.new(logo)) as mustapha describes in his nice introductory tutorial on Rmagick in http://www.mustap.com/rubyzone_post_185_manipulating-images-with-rma . Is it possible to create such a background with RMagick and use it to replace all that''s grey in FXRuby GUIs ? Thank you very much, Best regards, Axel -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
Lyle Johnson
2006-Sep-27 12:53 UTC
[fxruby-users] Change default background, maybe to a wallpaper design ?
On Sep 27, 2006, at 4:33 AM, Axel Etzold wrote:> I would like to change the greyish background of the FXRuby GUI. > Now, I have two questions with respect to this: > I know that I can change the color of individual buttons, toolbars > etc., but I''d like to know whether one can change this greyish > default. > using something like > > app.backColor = STD_BACK_COLOR > > didn''t do what I want...Try experimenting with the application''s base color attribute, e.g. app.baseColor = FXColor::PapayaWhip Note that in order for this setting to apply to the entire application, you need to make this setting when the application object is first instantiated, and before you''ve created any other widgets, e.g. app = FXApp.new app.baseColor = FXColor::DeepSkyBlue1 main = FXMainWindow.new(app, ...)> Is it possible to create such a background with RMagick and use it to > replace all that''s grey in FXRuby GUIs ?Not that I know of... You might ask around on the FOX GUI list about this. I know that it''s been asked there before.
Meinrad Recheis
2006-Sep-27 20:09 UTC
[fxruby-users] Change default background, maybe to a wallpaper design ?
its possible to set the widget colors (backColor/baseColor/hiliteColor/shadowColor/frameColor/textColor ...) to better looking colors. i have done this for example in foxGUIb. but it requires special tweaks for every kind of widget. sometimes it requires even defining tricky singleton methods to achieve good looking color schemes, but it is possible. background images (skinning) is impossible for standard widgets in fox. you could do it with FXCanvas but that would require to rewrite all the standard widgets in ruby as derivatives of FXCanvas. i wouldn''t try that ;) consider switching to jruby and swing. jruby is getting pretty mature and swing is a toolkit that is well designed (compared to fox) and fully supports skinning. -- henon On 9/27/06, Lyle Johnson <lyle at knology.net> wrote:> > On Sep 27, 2006, at 4:33 AM, Axel Etzold wrote: > > > I would like to change the greyish background of the FXRuby GUI. > > Now, I have two questions with respect to this: > > I know that I can change the color of individual buttons, toolbars > > etc., but I''d like to know whether one can change this greyish > > default. > > using something like > > > > app.backColor = STD_BACK_COLOR > > > > didn''t do what I want... > > Try experimenting with the application''s base color attribute, e.g. > > app.baseColor = FXColor::PapayaWhip > > Note that in order for this setting to apply to the entire > application, you need to make this setting when the application > object is first instantiated, and before you''ve created any other > widgets, e.g. > > app = FXApp.new > app.baseColor = FXColor::DeepSkyBlue1 > main = FXMainWindow.new(app, ...) > > > Is it possible to create such a background with RMagick and use it to > > replace all that''s grey in FXRuby GUIs ? > > Not that I know of... You might ask around on the FOX GUI list about > this. I know that it''s been asked there before. > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users >
Meinrad Recheis
2006-Sep-28 07:32 UTC
[fxruby-users] Change default background, maybe to a wallpaper design ?
On 9/27/06, Meinrad Recheis <meinrad.recheis at gmail.com> wrote:> its possible to set the widget colors > (backColor/baseColor/hiliteColor/shadowColor/frameColor/textColor ...) > to better looking colors. i have done this for example in foxGUIb. but > it requires special tweaks for every kind of widget. sometimes it > requires even defining tricky singleton methods to achieve good > looking color schemes, but it is possible. >... here is a screenshot of a userinterface I did at my work with FXRuby. i am going to add the style-library I built to foxGUIb if some people are interested. yours, -- henon -------------- next part -------------- A non-text attachment was scrubbed... Name: designer_GUI_design1.png Type: image/png Size: 44734 bytes Desc: not available Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20060928/2a98f944/attachment-0001.png