Skip to content

Commit

Permalink
remove button colors from quarks gui (cocoa + swing)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sciss authored and timblechmann committed Feb 26, 2012
1 parent 66ffe7c commit 7cb8ed0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions SCClassLibrary/Common/Quarks/Quarks.sc
Original file line number Diff line number Diff line change
Expand Up @@ -361,16 +361,16 @@ QuarksView {

if ( quarks.size == 0 ){
GUI.button.new(window, Rect(0, 0, 229, 20))
.states_([["checkout Quarks DIRECTORY", nil, Color.gray(0.5, 0.8)]])
.states_([["checkout Quarks DIRECTORY"]])
.action_({ quarksCtrl.checkoutDirectory; });
}{
GUI.button.new(window, Rect(0, 0, 229, 20))
.states_([["update Quarks DIRECTORY", nil, Color.gray(0.5, 0.8)]])
.states_([["update Quarks DIRECTORY"]])
.action_({ quarksCtrl.updateDirectory;});
};

GUI.button.new(window, Rect(0, 0, 200, 20))
.states_([["refresh Quarks listing", nil, Color.gray(0.5, 0.8)]])
.states_([["refresh Quarks listing"]])
.action_({
window.close;
quarksCtrl.gui;
Expand All @@ -379,26 +379,26 @@ QuarksView {
window.view.decorator.nextLine;

GUI.button.new(window, Rect(0, 0, 150, 20))
.states_([["browse all help", nil, Color.gray(0.5, 0.8)]])
.states_([["browse all help"]])
.action_({ HelpBrowser.openBrowsePage("Quarks") });

GUI.button.new(window, Rect(15,15,150,20))
.states_([["open quark directory", nil, Color.gray(0.5, 0.8)]])
.states_([["open quark directory"]])
.action_{ arg butt;
openOS(quarksCtrl.local.path.escapeChar($ ))
};

resetButton = GUI.button.new(window, Rect(15,15,75,20));
resetButton.states = [
["reset", nil, Color.gray(0.5, 0.8)]
["reset"]
];
resetButton.action = { arg butt;
views.do(_.reset);
};

saveButton = GUI.button.new(window, Rect(15,15,75,20));
saveButton.states = [
["save", nil, Color.blue(1, 0.5)]
["save", nil, Color.blue(1, 0.2)]
];
saveButton.action = { arg butt;
Task{
Expand Down

0 comments on commit 7cb8ed0

Please sign in to comment.