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

Add borders to ScrollPanes #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ArcTheme/ArcDarkTheme.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ ArcDarkTheme class >> addMenusAndDockingBars: theme [

{
#category : #'instance creation',
#'squeak_changestamp' : 'tobe 5/15/2024 15:30'
#'squeak_changestamp' : 'mad 10/24/2024 14:04'
}
ArcDarkTheme class >> addScrollables: theme [
"self create apply"
Expand All @@ -252,8 +252,8 @@ ArcDarkTheme class >> addScrollables: theme [

"Scroll panes (includes generic stuff for list widgets, tree widgets, and text widgets."
theme
set: #borderColor for: #ScrollPane to: (Color transparent);
set: #borderWidth for: #ScrollPane to: 0;
set: #borderColorModifier for: #ScrollPane to: [ [:c | c adjustBrightness: 0.07] ];
set: #borderWidth for: #ScrollPane to: 1;
set: #borderStyle for: #ScrollPane to: BorderStyle simple;
set: #color for: #ScrollPane to: (Color transparent).

Expand Down
6 changes: 3 additions & 3 deletions src/ArcTheme/ArcLightTheme.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ ArcLightTheme class >> addMenusAndDockingBars: theme [

{
#category : #'instance creation',
#'squeak_changestamp' : 'tobe 5/15/2024 15:31'
#'squeak_changestamp' : 'mad 10/24/2024 13:52'
}
ArcLightTheme class >> addScrollables: theme [
"self create apply"
Expand All @@ -252,8 +252,8 @@ ArcLightTheme class >> addScrollables: theme [

"Scroll panes (includes generic stuff for list widgets, tree widgets, and text widgets."
theme
set: #borderColor for: #ScrollPane to: (Color gray: 0.6);
set: #borderWidth for: #ScrollPane to: 0;
set: #borderColorModifier for: #ScrollPane to: [ [:c | c adjustBrightness: -0.07] ];
set: #borderWidth for: #ScrollPane to: 1;
set: #borderStyle for: #ScrollPane to: BorderStyle simple;
set: #color for: #ScrollPane to: Color transparent.

Expand Down