Skip to content

Instantly share code, notes, and snippets.

@estebanlm
Created October 19, 2021 10:25
Show Gist options
  • Save estebanlm/450a891ea93d481ca389e91beeb14da6 to your computer and use it in GitHub Desktop.
Save estebanlm/450a891ea93d481ca389e91beeb14da6 to your computer and use it in GitHub Desktop.
example window without decorations
presenter := SpPresenter new.
presenter application: (app := SpApplication new).
app styleSheet: (SpStyle defaultStyleSheet, (SpStyleVariableSTONReader fromString: '.application [
.box [ Container { #borderWidth: 10, #borderColor: #FF0000 } ],
.bgGreen [
Draw { #backgroundColor: #00FF00 } ] ]
')).
presenter layout: (SpBoxLayout newTopToBottom).
presenter openWithSpec.
presenter addStyle: 'box'.
presenter addStyle: 'bgGreen'.
presenter withWindowDo: [ :window |
window withoutDecorations ]
@estebanlm
Copy link
Author

this produces something like this:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment