Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve UX of Squit package chooser #346

Merged
merged 8 commits into from
Sep 14, 2022
Next Next commit
Package chooser: Add cancel button, colorize buttons
  • Loading branch information
LinqLover committed Oct 26, 2021
commit 6f3dcd1888dffcf5f5fa21b3941c0ac06ea8ed3b
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
toolbuilder
acceptColor
^ self userInterfaceTheme acceptColor
ifNil: [self userInterfaceTheme get: #okColor for: #DialogWindow]
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ buildWith: builder
builder pluggableButtonSpec new
model: self;
label: 'Accept';
action: #accept}))
action: #accept;
color: #acceptColor;
yourself.
builder pluggableButtonSpec new
model: self;
label: 'Cancel';
action: #cancel;
color: #cancelColor;
yourself}))
addKeyboardCaptureFilter: self;
yourself
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
actions
cancel

acceptChanges := false.
self changed: #close
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
toolbuilder
cancelColor
^ self userInterfaceTheme cancelColor
ifNil: [self userInterfaceTheme get: #cancelColor for: #DialogWindow]
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"chooseFor:" : "TB 4/22/2018 00:45" },
"instance" : {
"accept" : "TB 4/22/2018 12:40",
"acceptColor" : "ct 10/26/2021 14:29",
"buildButtons:" : "TB 4/22/2018 11:47",
"buildTrackedList:" : "TB 4/22/2018 13:32",
"buildUntrackedList:" : "TB 4/22/2018 13:32",
"buildWith:" : "TB 4/22/2018 13:17",
"buildWith:" : "ct 10/26/2021 14:29",
"buttonWidth" : "TB 4/22/2018 11:44",
"cancel" : "ct 10/26/2021 14:31",
"cancelColor" : "ct 10/26/2021 14:29",
"categoriesPlusPrefixes" : "TB 4/22/2018 00:37",
"chooseFor:" : "jr 5/6/2018 18:48",
"chooseSubdirectory:ifCanceled:" : "jr 9/6/2020 14:39",
Expand Down