Code Sample |
# Button for 800x600x16 (ie. 16 bit color) if strfind(data,"800x600x16") then b3 = Button{10,10+40*(i-1),130,30, "800x600x16"} i = i + 1 function b3:callback() updateXserverrc(" 800x600x16") end end |
Code Sample |
updateXserverrc(" 800x600x16") |
Code Sample |
# Color Selection colorBtn = Button{190,window_height-35,50,25,"Color"} function colorBtn.callback() ok,r,g,b = fl_color_chooser(nil,51,102,153) if ok then color_selected = format("%X%X%X",r,g,b) command = 'xsri --color=#'..color_selected execute(command) end end |
Code Sample |
xsri --color='99,66,60' |
Code Sample |
# Minimal style # ! Minimal © 2000 Jeff Raven ! Blackbox window manager resource defaults, with an ! eye towards consuming as little of an 8-bit palette ! as possible. As an additional bonus, with the changes ! as of Blackbox 0.60.3, it should also use very little ! memory. toolbar: Flat Solid toolbar.color: MidnightBlue toolbar.clock: ParentRelative toolbar.label: ParentRelative toolbar.windowLabel: ParentRelative toolbar.button: ParentRelative toolbar.button.pressed: Flat Solid toolbar.button.pressed.color: SteelBlue toolbar.button*picColor: White toolbar.textColor: White toolbar.justify: center window.title.focus: Flat Solid window.title.focus.color: SteelBlue window.title.unfocus: Flat Solid window.title.unfocus.color: MidnightBlue window.label.focus: ParentRelative window.label.focus.textColor: White window.label.unfocus: ParentRelative window.label.unfocus.textColor: Grey window.button.focus: ParentRelative window.button.focus.picColor: White window.button.unfocus: ParentRelative window.button.unfocus.picColor: Grey window.button.pressed: ParentRelative window.handle.focus: Flat Solid window.handle.focus.color: SteelBlue window.handle.unfocus: Flat Solid window.handle.unfocus.color: MidnightBlue window.grip.focus: Flat Solid window.grip.unfocus: Flat Solid window.grip*color: Grey window.frame.focusColor: SteelBlue window.frame.unfocusColor: MidnightBlue window.justify: center menu.title: Flat Solid menu.frame: Flat Solid menu.hilite: Flat Solid menu.title.color: Black menu.title.textColor: White menu.title.justify: center menu.frame.color: MidnightBlue menu.frame.textColor: White menu.frame.justify: left menu.hilite.color: White menu.hilite.textColor: Black menu.bullet: Triangle menu.bullet.position: Right borderColor: Black bevelWidth: 1 borderWidth: 1 handleWidth: 4 *Font: -*-helvetica-*-r-*-*-12-*-*-*-*-*-*-* rootCommand: bsetroot -solid SlateGrey |
Quote (Zucca @ July 19 2006,06:18) |
Damn with those happy-faces... Please paste that code inside CODE-tags. |