Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6751

Re: Color - Appearance of Buttons

From John Fultz <jfultz@wolfram.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Color - Appearance of Buttons
Date 2011-11-26 10:13 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jaqe52$nid$1@smc.vnet.net> (permalink)

Show all headers | View raw


On Fri, 25 Nov 2011 04:59:56 -0500 (EST), Jakob Ebner wrote:
> If I change the Background of a button to a different color it has
> this "old" M5 style, see the difference between
> Button["test", None]
> Button["test", None, Background -> Orange]
>
> Is there a way to keep the styling for different colors and/or to
> change the color when you hover over the button?
>
> Jakob Ebner

The modern visual styling of buttons is painted by the operating system, and the 
operating system has no way of setting the colors on a button-by-button basis 
(although some operating systems allow global setting of "themes" that may 
affect this).  We've deliberately chosen to allow the operating system to handle 
this case rather than trying to emulate what the operating system does and play 
a game of "follow the leader" as new versions of the OS come out.

And, frankly, I'm not even sure what the rules should be for arbitrary colors 
for a modern Windows or Mac system (how to treat the gradients, what should the 
pressed appearance look like, how should default buttons distinguish themselves, 
what should mouseover appearances be, etc.).  And so, we've let the historical 
implementation stay unchanged.

Sincerely,

John Fultz
jfultz@wolfram.com
User Interface Group
Wolfram Research, Inc.

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Color - Appearance of Buttons John Fultz <jfultz@wolfram.com> - 2011-11-26 10:13 +0000

csiph-web