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 Theme awareness support #19

Merged
merged 2 commits into from
Feb 9, 2023
Merged

Add Theme awareness support #19

merged 2 commits into from
Feb 9, 2023

Conversation

TimLariviere
Copy link
Member

(VStack(spacing = 15.) {
    Label("Default label")

    Label("This text will always be green").textColor(Colors.Green)

    Label(ThemeAware.With("Current theme is Light", "Current theme is Dark"))
        .textColor(ThemeAware.With(Colors.Blue, Colors.Red))
        .font(size = ThemeAware.With(12., 20.))

    Image(ThemeAware.With("dotnet_bot.png", "fabulous.png")).size(200., 200.)
})
    .padding(20.)
    .background(ThemeAware.With(Colors.LightBlue, Colors.DarkBlue))
let program =
    Program.stateful init update view
    |> Program.withThemeAwareness
Simulator.Screen.Recording.-.iPhone.14.-.2023-02-09.at.09.43.00.mp4

@TimLariviere TimLariviere added this pull request to the merge queue Feb 9, 2023
Merged via the queue into main with commit 77b298c Feb 9, 2023
@TimLariviere TimLariviere deleted the theme-awareness branch February 9, 2023 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant