https://github.com/wxWidgets/wxWidgets/pull/25853
(12 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@vadz commented on this pull request.
I am not sure why all trailing whitespace got removed from Makefile.in
, but we probably don't want to do this, as it will be added back during next regeneration.
> +// Author: Vadim Zeitlin +// Created: 2015-11-26 (completely replacing the old version of the file) +// Copyright: (c) 2015 Vadim Zeitlin
My name shouldn't be here.
In src/osx/iphone/settings.mm:
> + { + return defaultValue; + } + + return [setting intValue]; +} + +// ---------------------------------------------------------------------------- +// wxSystemAppearance +// ---------------------------------------------------------------------------- + +wxString wxSystemAppearance::GetName() const +{ + UITraitCollection* traitCollection = [UIScreen mainScreen].traitCollection; + if (traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) + return wxT("Dark");
We shouldn't use wxT()
in new code, it should be either wxS()
or nothing at all.
- return wxT("Dark"); + return wxS("Dark");
In src/osx/iphone/settings.mm:
> + } + + return [setting intValue]; +} + +// ---------------------------------------------------------------------------- +// wxSystemAppearance +// ---------------------------------------------------------------------------- + +wxString wxSystemAppearance::GetName() const +{ + UITraitCollection* traitCollection = [UIScreen mainScreen].traitCollection; + if (traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) + return wxT("Dark"); + else if (traitCollection.userInterfaceStyle == UIUserInterfaceStyleLight) + return wxT("Light");⬇️ Suggested change
- return wxT("Light"); + return wxS("Light");
In src/osx/iphone/settings.mm:
> + return [setting intValue]; +} + +// ---------------------------------------------------------------------------- +// wxSystemAppearance +// ---------------------------------------------------------------------------- + +wxString wxSystemAppearance::GetName() const +{ + UITraitCollection* traitCollection = [UIScreen mainScreen].traitCollection; + if (traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) + return wxT("Dark"); + else if (traitCollection.userInterfaceStyle == UIUserInterfaceStyleLight) + return wxT("Light"); + else + return wxT("Unspecified");⬇️ Suggested change
- return wxT("Unspecified"); + return wxS("Unspecified");
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@csomor pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@csomor pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@csomor pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@csomor pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@csomor commented on this pull request.
> +// Author: Vadim Zeitlin +// Created: 2015-11-26 (completely replacing the old version of the file) +// Copyright: (c) 2015 Vadim Zeitlin
sorry, copied the headers over from the cocoa version ...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
I am not sure why all trailing whitespace got removed from
Makefile.in
, but we probably don't want to do this, as it will be added back during next regeneration.
oh, sorry, my BBEdit seems to have messed this up
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@csomor pushed 2 commits.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@csomor pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@csomor pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@csomor pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@csomor pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@csomor pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
Merged #25853 into master.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.