Home   Archive   Permalink



want to change the text color IN the button !

hi there ,
    
is it possible to change the text color IN the button ?
    
WBR
MH

posted by:   Mennohexo     26-Jun-2017/12:24:44-7:00



I was able to make this work:
    
R E B O L [
     Title: "Button font test"
]
view center-face layout [
     banner "Button font and color test"
     button 300x40 "Default"
     button 300x40 "font-fixed button text" font [
         color: red    ;; "color" seems not to work
         name: font-fixed
     ]
     button 300x40 "font-serif button text" font [
         color: black
         name: font-serif
         size: 20
     ]
     button 300x40 "font-sans-serif button text" font [
         color: 255.0.0
         name: font-sans-serif
         size: 20
     ]
     button 300x40 "Bold italic underlined button text" font [
         style: [bold italic underline]
         align: 'left
     ]
     button 300x40 "Spaced text" font [
         space: 10x0
         shadow: 4x4
     ]
     button 300x40 "Colored button text" font [
         colors: [255.0.0 0.255.0] ;; colorS seems to work
         name: font-sans-serif
         size: 20
     ]
     button 300x40 "Quit" [quit]
]

posted by:   Steven White     26-Jun-2017/14:27:54-7:00



Thank you ,
    
that helps a lot.

posted by:   Mennohexo     26-Jun-2017/14:55:38-7:00