Skip to content

Commit

Permalink
Merge pull request #8 from Konyaco/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Konyaco authored Apr 9, 2023
2 parents 4f1cbbf + 0897a79 commit 66df10a
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 19 deletions.
12 changes: 6 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
plugins {
kotlin("multiplatform") version "1.7.20" apply false
id("org.jetbrains.compose") version "1.3.0-beta04-dev873" apply false
id("com.android.library") version "7.3.1" apply false
id("org.jetbrains.kotlin.android") version "1.7.20" apply false
kotlin("multiplatform") version "1.8.0" apply false
id("org.jetbrains.compose") version "1.3.1" apply false
id("com.android.library") version "7.4.2" apply false
id("org.jetbrains.kotlin.android") version "1.8.0" apply false
}

group = "com.konyaco.fluent"
group = "com.konyaco"

allprojects {
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
}
7 changes: 4 additions & 3 deletions fluent-icons-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("com.android.library")
id("maven-publish")
}

group = "com.konyaco.fluent"
version = "0.0.1-dev3"
group = "com.konyaco"
version = "0.0.1-dev4"

kotlin {
jvm()
Expand Down Expand Up @@ -37,4 +38,4 @@ android {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
}
28 changes: 25 additions & 3 deletions fluent-icons-extended/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("com.android.library")
id("maven-publish")
}

group = "com.konyaco.fluent"
version = "0.0.1-dev3"
group = "com.konyaco"
version = "0.0.1-dev4"

kotlin {
jvm()
Expand Down Expand Up @@ -39,4 +40,25 @@ android {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
}

publishing {
repositories {
maven {
name = "OSSRHSnapshot"
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
maven {
name = "OSSRH"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
28 changes: 25 additions & 3 deletions fluent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("com.android.library")
id("maven-publish")
}

group = "com.konyaco.fluent"
version = "0.0.1-dev3"
group = "com.konyaco"
version = "0.0.1-dev4"

kotlin {
jvm()
Expand Down Expand Up @@ -49,4 +50,25 @@ android {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
}

publishing {
repositories {
maven {
name = "OSSRHSnapshot"
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
maven {
name = "OSSRH"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
7 changes: 3 additions & 4 deletions fluent/src/commonMain/kotlin/com/konyaco/fluent/Colors.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import androidx.compose.runtime.*
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.takeOrElse
import org.jetbrains.skia.defaultLanguageTag

@Stable
class Colors(
Expand Down Expand Up @@ -358,8 +357,8 @@ internal fun generateStroke(shades: Shades, darkMode: Boolean): Stroke =
private fun generateBorders(fillAccent: FillAccentColors, stroke: Stroke, darkMode: Boolean): Borders =
if (darkMode) Borders(
control = Brush.verticalGradient(
0.0957f to stroke.control.default,
1f to stroke.control.secondary
0.0957f to stroke.control.secondary,
1f to stroke.control.default
),
accentControl = Brush.verticalGradient(
0.9067f to stroke.control.onAccentDefault,
Expand Down Expand Up @@ -398,4 +397,4 @@ private fun generateBorders(fillAccent: FillAccentColors, stroke: Stroke, darkMo
0.9395f to stroke.control.default,
0.9414f to fillAccent.default
)
)
)

0 comments on commit 66df10a

Please sign in to comment.