MacOS Theme for Compose

A collection of components that follow MacOS Theme, written in Compose UI

Лицензия

Лицензия

Категории

Категории

Данные
Группа

Группа

io.github.chozzle
Идентификатор

Идентификатор

compose-macos-theme-metadata
Последняя версия

Последняя версия

0.4.0
Дата

Дата

Тип

Тип

pom.sha512
Описание

Описание

MacOS Theme for Compose
A collection of components that follow MacOS Theme, written in Compose UI
Ссылка на сайт

Ссылка на сайт

https://github.com/chozzle/compose-macos-theme
Система контроля версий

Система контроля версий

https://github.com/chozzle/compose-macos-theme

Скачать compose-macos-theme-metadata

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.jetbrains.compose.runtime : runtime jar 0.3.2
org.jetbrains.compose.foundation : foundation jar 0.3.2
org.jetbrains.compose.material : material jar 0.3.2

Модули Проекта

Данный проект не имеет модулей.

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 Android, Windows or Linux. You could combine this with themes to match other platforms and write your UI once, but themed to appear native.

Desktop Example

Android Example

Gradle

Multiplatform

Add the common dependency which will work for both android and desktop.

sourceSets {
    named("commonMain") {
        dependencies {
            implementation("io.github.chozzle:compose-macos-theme:0.3.1")
        }
    }
}

Optionally, supply specific dependencies:

Desktop JVM

Currently it appears that for desktop projects, you must use the kotlin multiplatform plugin

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.3.1")
            }
        }
    }
}

Android

Do not specify android specifically (it won't work). Gradle will automatically import the android sourceset only.

dependencies {
    implementation("io.github.chozzle:compose-macos-theme:0.3.1 ")
}

Ensure you have the required compiler options for compose generally or alternatively you can use Jetbrains' plugin:

plugins {
    id("org.jetbrains.compose")
}

You'll need Maven Central as a repository

repositories {
    ...
    mavenCentral()
}

Planned work - please assign yourself!

  • Search field
  • Text field
  • Checkbox
  • Buttons
  • Dropdown menu - desktop only
  • 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.

Версии библиотеки

Версия
0.4.0
0.3.1
0.3.0
0.2.0
0.1.0