Issue 954 in moose-technology: List presentation should support changing the color and font of the text

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 954 in moose-technology: List presentation should support changing the color and font of the text

moose-technology
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 954 by [hidden email]: List presentation should support  
changing the color and font of the text
http://code.google.com/p/moose-technology/issues/detail?id=954

Tree, list and column presentations should support changing the color and  
style of the text.
For example, the following code should change just the color of the text:

        | browser  |
        browser := GLMTabulator new.
        browser column: #one.
        browser transmit
                to: #one;
                andShow: [ :a |
                                        a list
                                                display: [ :x | x ];
                                                textColor: [ :aNumber |
                                                                        (aNumber isDivisibleBy: 2)
                                                                                ifTrue: [ Color green ]
                                                                                ifFalse: [ Color red ] ] ].
                                                               
                 browser openOn: (1 to: 6).

--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 954 in moose-technology: List presentation should support changing the color and font of the text

moose-technology
Updates:
        Status: WontFix
        Labels: Component-Glamour

Comment #1 on issue 954 by [hidden email]: List presentation should  
support changing the color and font of the text
http://code.google.com/p/moose-technology/issues/detail?id=954

This is already possible

GLMWrapper new with: [ :w |
        w show: [ :a |
                a list format: [ :x |
                        Text
                                string: x asString
                                attribute: (x odd ifTrue: [TextColor gray] ifFalse: [TextColor black] )  
] ] ];
        openOn: ( 1 to: 10)

--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev