Skip to content

use inverted versions of window icons in the Dark theme(s) #18173

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

Merged
Merged
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
49 changes: 49 additions & 0 deletions src/Polymorph-Widgets/PharoDarkTheme.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,59 @@ PharoDarkTheme >> taskbarItemSelectedPressedFillStyleFor: aButton [
^ SolidFillStyle color: (Color white alpha: 0.35)
]

{ #category : 'label-styles - windows' }
PharoDarkTheme >> windowCloseFormSet [
"Answer the form set to use for the close button of a window."

^ self iconFormSetNamed: #windowCloseInverted
]

{ #category : 'label-styles - windows' }
PharoDarkTheme >> windowCloseOverFormSet [
"Answer the form set to use for mouse over window close buttons"

^ self iconFormSetNamed: #windowCloseInverted
]

{ #category : 'label-styles - windows' }
PharoDarkTheme >> windowLabelForText: aTextOrString [

^ (super windowLabelForText: aTextOrString)
color: self textColor;
yourself
]

{ #category : 'label-styles - windows' }
PharoDarkTheme >> windowMaximizeFormSet [
"Answer the form set to use for the maximize button of a window."

^ self iconFormSetNamed: #windowMaximizeInverted
]

{ #category : 'label-styles - windows' }
PharoDarkTheme >> windowMaximizeOverFormSet [
"Answer the form set to use for mouse over window maximize buttons"

^ self iconFormSetNamed: #windowMaximizeInverted
]

{ #category : 'label-styles - windows' }
PharoDarkTheme >> windowMenuFormSet [
"Answer the form set to use for the menu button of a window."

^ self iconFormSetNamed: #windowMenuInverted
]

{ #category : 'label-styles - windows' }
PharoDarkTheme >> windowMinimizeFormSet [
"Answer the form set to use for the minimize button of a window."

^ self iconFormSetNamed: #windowMinimizeInverted
]

{ #category : 'label-styles - windows' }
PharoDarkTheme >> windowMinimizeOverFormSet [
"Answer the form set to use for mouse over window minimize buttons"

^ self iconFormSetNamed: #windowMinimizeInverted
]