Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

[[ Bug 22607 ]] Implement system appearance support#7298

Merged
livecodepanos merged 1 commit into
livecode:developfrom
montegoulding:bugfix-22607
Apr 7, 2020
Merged

[[ Bug 22607 ]] Implement system appearance support#7298
livecodepanos merged 1 commit into
livecode:developfrom
montegoulding:bugfix-22607

Conversation

@montegoulding

Copy link
Copy Markdown
Contributor

This patch implements a systemAppearance property and a systemAppearanceChanged
message for macOS, Android and iOS.

The property returns if the application is running under either light or dark
mode. The message is sent to the current card of the defaultStack when the
system appearance changes (either automatically or when the user changes it).

@runrevmark runrevmark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only minor feedback - main thing is what we return on platforms which don't currently have a 'dark mode' :)

Comment thread engine/src/desktop-dc.h
Comment thread engine/src/uidc.cpp Outdated
Comment thread docs/dictionary/property/systemAppearance.lcdoc
Comment thread engine/src/mac-core.mm Outdated
Comment thread engine/src/mcstring.cpp Outdated
@montegoulding montegoulding force-pushed the bugfix-22607 branch 3 times, most recently from a98d1ee to ee89159 Compare March 25, 2020 09:57
@runrevmark runrevmark added this to the 9.6.0-dp-4 milestone Apr 1, 2020
Comment thread engine/src/mac-core.mm Outdated
Comment thread engine/src/platform.h
@runrevmark

Copy link
Copy Markdown
Contributor

@montegoulding Could you rebase and resolve the conflict :)

This patch implements a `systemAppearance` property and a `systemAppearanceChanged`
message for macOS, Android and iOS.

The property returns if the application is running under either light or dark
mode. The message is sent to the current card of the defaultStack when the
system appearance changes (either automatically or when the user changes it).
@runrevmark

Copy link
Copy Markdown
Contributor

@livecode-vulcan review ok 0ba1662

@livecode-vulcan

Copy link
Copy Markdown
Contributor

💙 review by @runrevmark ok 0ba1662

livecode-vulcan added a commit that referenced this pull request Apr 7, 2020
[[ Bug 22607 ]] Implement system appearance support

This patch implements a `systemAppearance` property and a `systemAppearanceChanged`
message for macOS, Android and iOS.

The property returns if the application is running under either light or dark
mode. The message is sent to the current card of the defaultStack when the
system appearance changes (either automatically or when the user changes it).
@livecode-vulcan

Copy link
Copy Markdown
Contributor

😎 test success 0ba1662

  • try-community-armv6-android-sdk26_ndk16r15: success
  • try-community-armv7-android-ndk16r15: success
  • try-community-arm64-android-ndk16r15: success
  • try-community-x86-android-ndk16r15: success
  • try-community-x86_64-android-ndk16r15: success
  • try-community-js-emscripten-sdk1.35: success
  • try-community-universal-ios-iphoneos13.4: success
  • try-community-universal-ios-iphonesimulator13.4: success
  • try-community-universal-mac-macosx10.9: success
  • try-community-x86-linux-debian8: success
  • try-community-x86_64-linux-debian8: success
  • try-community-x86-win32: success
  • try-community-x86_64-win32: success

@livecodepanos livecodepanos merged commit 4b7e8fc into livecode:develop Apr 7, 2020
set the backColor of me to "white"
set the foreColor of me to "black"
end if
on systemAppearanceChanged

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has a copy-paste error (end systemAppearanceChanged) :)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants