-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CAL-74: Extend customization options
- Loading branch information
1 parent
2b4b66c
commit b227c1e
Showing
8 changed files
with
81 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// Color++.swift of CalendarView | ||
// | ||
// Created by Tomasz Kurylik | ||
// - Twitter: https://twitter.com/tkurylik | ||
// - Mail: tomasz.kurylik@mijick.com | ||
// - GitHub: https://github.com/FulcrumOne | ||
// | ||
// Copyright ©2023 Mijick. Licensed under MIT License. | ||
|
||
|
||
import SwiftUI | ||
|
||
extension Color { | ||
static let backgroundPrimary: Color = { | ||
#if os(macOS) | ||
Color(NSColor.windowBackgroundColor) | ||
#else | ||
Color(UIColor.systemBackground) | ||
#endif | ||
}() | ||
static let backgroundSecondary: Color = { | ||
#if os(macOS) | ||
Color(NSColor.underPageBackgroundColor) | ||
#else | ||
Color(UIColor.secondarySystemBackground) | ||
#endif | ||
}() | ||
|
||
static let onBackgroundPrimary: Color = { | ||
#if os(macOS) | ||
Color(NSColor.windowBackgroundColor) | ||
#else | ||
Color(UIColor.label) | ||
#endif | ||
}() | ||
static let onBackgroundSecondary: Color = { | ||
#if os(macOS) | ||
Color(NSColor.windowBackgroundColor) | ||
#else | ||
Color(UIColor.secondaryLabel) | ||
#endif | ||
}() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters