Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chozzle/compose-macos-theme
MacOS theme for JetBrains Compose UI framework
https://github.com/chozzle/compose-macos-theme
Last synced: 2 months ago
JSON representation
MacOS theme for JetBrains Compose UI framework
- Host: GitHub
- URL: https://github.com/chozzle/compose-macos-theme
- Owner: Chozzle
- License: apache-2.0
- Created: 2020-12-06T12:52:15.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-17T02:05:45.000Z (over 2 years ago)
- Last Synced: 2024-08-02T09:27:28.832Z (6 months ago)
- Language: Kotlin
- Homepage:
- Size: 31 MB
- Stars: 262
- Watchers: 4
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kotlin-multiplatform - compose-macos-theme - Multiplatform MacOS theme written in Compose UI (Libraries / GUI)
README
# MacOS theme for Compose
Multiplatform MacOS theme written in Compose UI.Create native looking UIs for Mac using Compose UI. Share your UI code to run on Mac, Windows, Linux or Android. Maybe iOS will come later.
You could combine this with themes to match other platforms and write your UI once, but themed to appear native.![Desktop Example](screenshots/desktop.png)
![Android Example](screenshots/android.png)
### Gradle
#### Multiplatform
Add the common dependency which will work for both android and desktop.
```kotlin
sourceSets {
named("commonMain") {
dependencies {
implementation("io.github.chozzle:compose-macos-theme:0.4.2")
}
}
}
```Optionally, supply specific dependencies:
#### Desktop JVM
Currently it appears that for desktop projects, you must use the kotlin multiplatform plugin
```kotlin
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
}kotlin {
sourceSets {
named("jvmMain") {
dependencies {
implementation(compose.desktop.currentOs)
implementation("io.github.chozzle:compose-macos-theme-desktop:0.4.2")
}
}
}
}
```#### Android
Do not specify android specifically (it won't work). Gradle will automatically import the android sourceset only.
```kotlin
dependencies {
implementation("io.github.chozzle:compose-macos-theme:0.4.2 ")
}
```Ensure you have the [required compiler options for compose](https://developer.android.com/jetpack/compose/setup#configure_gradle) generally
or alternatively you can use Jetbrains' plugin:
```kotlin
plugins {
id("org.jetbrains.compose")
}
```You'll need Maven Central as a repository
```kotlin
repositories {
...
mavenCentral()
}
```### Planned work - please assign yourself!
- [x] Search field
- [x] Text field
- [x] Checkbox
- [x] Buttons
- [x] Dropdown menu - desktop only
- [x] Radio button
- [ ] Switch
- [ ] Dark theme
- [ ] Theme for Windows?Note that SF Symbols used in this library are only licenced to be used on Apple devices.