Thread: [Swingosc-devel] Linux LAF
Brought to you by:
sciss
From: James H. <jam...@gm...> - 2010-02-15 02:21:05
|
Could anyone suggest a LAF that does not have the fugly sliders that Metal has? I tried Motif but the slider thumbs are too wide, cutting down on slider resolution. (I'd rather avoid quaqua since I don't care for the blue-candy sliders either.) I searched google images but a lot of LAF screenshots don't show sliders, so I have no idea what I'm getting. Thanks! hjh -- James Harkins /// dewdrop world jam...@de... http://www.dewdrop-world.net "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman |
From: Sciss <co...@sc...> - 2010-02-15 13:59:50
|
if you can install sun's java 1.6, i recommend nimbus which is really great looking. if you can't for some reason (e.g. i'm not sure it's included in openJDK), you could i think still install it separately from https://nimbus.dev.java.net/ . did you try the Gtk look and feel? nimbus ideally could render differently big slider knobs, but at least in the java 1.6 version that snow leopard ships with, the resize hints (JComponent.sizeVariant) are broken unfortunately. unfortunately i don't have much time, but we could still plan to use a custom slider instead of JSlider, as that would allow for more closer matching with cocoa gui, e.g. slider track and knob colours etc. the original JSlider (which i like quite much) could then be with another swingOSC only class. ciao, -sciss.- Am 15.02.2010 um 02:20 schrieb James Harkins: > Could anyone suggest a LAF that does not have the fugly sliders that Metal has? > > I tried Motif but the slider thumbs are too wide, cutting down on slider resolution. > > (I'd rather avoid quaqua since I don't care for the blue-candy sliders either.) > > I searched google images but a lot of LAF screenshots don't show sliders, so I have no idea what I'm getting. > > Thanks! > hjh > > > -- > James Harkins /// dewdrop world > jam...@de... > http://www.dewdrop-world.net > > "Come said the Muse, > Sing me a song no poet has yet chanted, > Sing me the universal." -- Whitman > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev_______________________________________________ > Swingosc-devel mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swingosc-devel |
From: James H. <jam...@gm...> - 2010-02-15 17:05:20
|
On Mon, Feb 15, 2010 at 8:27 AM, Sciss <co...@sc...> wrote: > if you can install sun's java 1.6, i recommend nimbus which is really great > looking. if you can't for some reason (e.g. i'm not sure it's included in > openJDK), you could i think still install it separately from > https://nimbus.dev.java.net/ . did you try the Gtk look and feel? > GTK looks about the same as Motif, only brighter. Here's the problem with those: ( w = Window("lo-res slider", Rect(10, 100, 125, 50)); z = Slider(w, Rect(5, 5, 50, 20)).action_({ |view| view.value.postln }); w.front; ) With GTK/Motif, moving the thumb by 1 pixel changes the value by 0.083333333022892, or 1/12. Very poor resolution. > nimbus ideally could render differently big slider knobs, but at least in > the java 1.6 version that snow leopard ships with, the resize hints > (JComponent.sizeVariant) are broken unfortunately. > Thanks for the suggestion. Sliders are much prettier. I have a LOT of them in my GUI and when they look bad, the whole thing is an assault on the eye. Small static text views, not so good - even the Volume control in the server window is unreadable. I can live with it for now. Or maybe I just need more fonts. unfortunately i don't have much time, but we could still plan to use a > custom slider instead of JSlider, as that would allow for more closer > matching with cocoa gui, e.g. slider track and knob colours etc. the > original JSlider (which i like quite much) could then be with another > swingOSC only class. > Nah, I don't that's necessary. hjh -- James Harkins /// dewdrop world jam...@de... http://www.dewdrop-world.net "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman |
From: James H. <jam...@gm...> - 2010-02-15 17:08:18
|
On Mon, Feb 15, 2010 at 12:05 PM, James Harkins <jam...@gm...>wrote: > > Small static text views, not so good - even the Volume control in the > server window is unreadable. I can live with it for now. Or maybe I just > need more fonts. > Oops, no, static text is fine. TextFields/NumberBoxes have a large inner frame in nimbus, which obscures the content. So I may need to keep looking for another LAF... hjh -- James Harkins /// dewdrop world jam...@de... http://www.dewdrop-world.net "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman |
From: Sciss <co...@sc...> - 2010-02-15 17:21:43
|
hmmm. one could make the border optional: g.options.javaOptions="-Dswing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"; g.reboot; ( var w; w = JSCWindow( "JSCTextField" ); b = JSCTextField( w, Rect( 10, 10, 150, 16 )); b.string = "hi there"; b.action = { arg field; field.value.postln }; c = JSCTextField( w, Rect( 10, 50, 150, 16 )); c.string = "hi there"; c.action = { arg field; field.value.postln }; // g.sendMsg( '/method', c.id, \putClientProperty, "JComponent.sizeVariant", "mini" ); g.listSendMsg([ '/set', c.id, \border ] ++ nil.asSwingArg ); w.front; ) Am 15.02.2010 um 17:08 schrieb James Harkins: > On Mon, Feb 15, 2010 at 12:05 PM, James Harkins <jam...@gm...> wrote: > > Small static text views, not so good - even the Volume control in the server window is unreadable. I can live with it for now. Or maybe I just need more fonts. > > Oops, no, static text is fine. TextFields/NumberBoxes have a large inner frame in nimbus, which obscures the content. So I may need to keep looking for another LAF... > > hjh > > > -- > James Harkins /// dewdrop world > jam...@de... > http://www.dewdrop-world.net > > "Come said the Muse, > Sing me a song no poet has yet chanted, > Sing me the universal." -- Whitman > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev_______________________________________________ > Swingosc-devel mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swingosc-devel |
From: James H. <jam...@gm...> - 2010-02-15 23:38:29
|
On Mon, Feb 15, 2010 at 12:21 PM, Sciss <co...@sc...> wrote: > hmmm. > > one could make the border optional: > That does help. I have temporarily changed prInitView for JSCTextField and JSCNumberBox in my environment like so (here from JSCTextField): ^this.prSCViewNew([ [ '/local', this.id, '[', '/new', "de.sciss.swingosc.TextField", ']', "ac" ++ this.id, '[', '/new', "de.sciss.swingosc.ActionResponder", this.id, \text, ']', "tx" ++ this.id, '[', '/new', "de.sciss.swingosc.DocumentResponder", this.id, ']' ] ], [ [ '/set', this.id, \border ] ++ nil.asSwingArg ]); It's not a perfect solution - the class browser doesn't draw a border around the class name textfield anymore, but I can change the background on that view and it will be OK. It's definitely good enough for my purposes. Thanks for the help! hjh -- James Harkins /// dewdrop world jam...@de... http://www.dewdrop-world.net "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman |
From: Sciss <co...@sc...> - 2010-02-16 01:13:46
|
i added something for you, try it out: ( var w; w = JSCWindow( "JSCTextField" ); b = JSCTextField( w, Rect( 10, 10, 150, 16 )); b.string = "hi there"; b.action = { arg field; field.value.postln }; c = JSCNumberBox( w, Rect( 10, 40, 150, 16 )).value_( 0.0 ); w.front; ) b.setLineBorder; b.setLineBorder( Color.blue ); b.setLineBorder( Color.red, 2 ); b.borderless = true; b.borderless = false; c.setLineBorder( Color.yellow, 3 ); c.setNormalBorder ciao, -sciss- Am 15.02.2010 um 23:38 schrieb James Harkins: > On Mon, Feb 15, 2010 at 12:21 PM, Sciss <co...@sc...> wrote: > hmmm. > > one could make the border optional: > > That does help. I have temporarily changed prInitView for JSCTextField and JSCNumberBox in my environment like so (here from JSCTextField): > > ^this.prSCViewNew([ > [ '/local', this.id, '[', '/new', "de.sciss.swingosc.TextField", ']', > "ac" ++ this.id, > '[', '/new', "de.sciss.swingosc.ActionResponder", this.id, \text, ']', > "tx" ++ this.id, > '[', '/new', "de.sciss.swingosc.DocumentResponder", this.id, ']' ] > ], [ > [ '/set', this.id, \border ] ++ nil.asSwingArg > ]); > > It's not a perfect solution - the class browser doesn't draw a border around the class name textfield anymore, but I can change the background on that view and it will be OK. It's definitely good enough for my purposes. > > Thanks for the help! > hjh > > > -- > James Harkins /// dewdrop world > jam...@de... > http://www.dewdrop-world.net > > "Come said the Muse, > Sing me a song no poet has yet chanted, > Sing me the universal." -- Whitman > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev_______________________________________________ > Swingosc-devel mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swingosc-devel |