-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- New UI design.
- Loading branch information
Showing
64 changed files
with
3,195 additions
and
377 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
10 changes: 5 additions & 5 deletions
10
android/src/main/java/me/konyaco/collinsdictionary/MainActivity.kt
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
<resources xmlns:tools="http://schemas.android.com/tools"> | ||
<style name="Theme.CollinsDictionary" parent="Theme.AppCompat.DayNight.NoActionBar"> | ||
<item name="android:colorPrimary">@color/purple_500</item> | ||
<item name="android:colorPrimaryDark">@color/purple_700</item> | ||
<item name="android:windowTranslucentStatus">true</item> | ||
<item name="android:windowTranslucentNavigation">true</item> | ||
<item name="android:colorPrimary">#E57373</item> | ||
<item name="android:colorPrimaryDark">#E57373</item> | ||
<item name="android:background">#212121</item> | ||
<item name="android:statusBarColor">#212121</item> | ||
<item name="android:navigationBarColor">#212121</item> | ||
<item name="android:windowLightStatusBar" tools:targetApi="m">false</item> | ||
<item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">false</item> | ||
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item> | ||
</style> | ||
</resources> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
<resources xmlns:tools="http://schemas.android.com/tools"> | ||
<!-- Base application theme. --> | ||
<style name="Theme.CollinsDictionary" parent="Theme.AppCompat.DayNight.NoActionBar"> | ||
<item name="android:colorPrimary">@color/purple_500</item> | ||
<item name="android:colorPrimaryDark">@color/purple_700</item> | ||
<item name="android:windowTranslucentStatus">true</item> | ||
<item name="android:windowTranslucentNavigation">true</item> | ||
<!-- <item name="android:windowIsTranslucent">true</item>--> | ||
<item name="android:colorPrimary">#D32F2F</item> | ||
<item name="android:colorPrimaryDark">#D32F2F</item> | ||
<item name="android:background">#FAFAFA</item> | ||
<item name="android:statusBarColor">#FAFAFA</item> | ||
<item name="android:navigationBarColor">#FAFAFA</item> | ||
<item name="android:windowLightStatusBar" tools:targetApi="m">true</item> | ||
<item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">true</item> | ||
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item> | ||
</style> | ||
</resources> |
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 |
---|---|---|
|
@@ -15,4 +15,4 @@ allprojects { | |
} | ||
|
||
group = "me.konyaco.collinsdictionary" | ||
version = "1.1.0" | ||
version = "1.2.0" |
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="me.konyaco.collinsdictionary.common" /> | ||
<manifest package="me.konyaco.collinsdictionary.common" /> |
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
3 changes: 1 addition & 2 deletions
3
.../collinsdictionary/ColumnWithScrollbar.kt → ...llinsdictionary/ui/ColumnWithScrollbar.kt
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
44 changes: 44 additions & 0 deletions
44
common/src/androidMain/kotlin/me/konyaco/collinsdictionary/ui/MyTheme.android.kt
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 @@ | ||
package me.konyaco.collinsdictionary.ui | ||
|
||
import androidx.compose.foundation.isSystemInDarkTheme | ||
import androidx.compose.material.MaterialTheme | ||
import androidx.compose.material.Typography | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.graphics.painter.Painter | ||
import androidx.compose.ui.res.painterResource | ||
import androidx.compose.ui.text.font.FontFamily | ||
import me.konyaco.collinsdictionary.common.R | ||
|
||
@Composable | ||
actual fun MyTheme(content: @Composable () -> Unit) { | ||
MaterialTheme( | ||
colors = if (isSystemInDarkTheme()) darkColors else lightColors, | ||
typography = Typography(defaultFontFamily = RobotoFontFamily), | ||
content = content | ||
) | ||
} | ||
|
||
actual object MyRes { | ||
actual val Sound: Painter | ||
@Composable | ||
get() = painterResource(R.drawable.ic_sound) | ||
|
||
actual val WordNotFoundLRes: Painter | ||
@Composable | ||
get() = painterResource(R.drawable.wordnotfound_l) | ||
|
||
actual val WordNotFoundSRes: Painter | ||
@Composable | ||
get() = painterResource(R.drawable.wordnotfound_s) | ||
|
||
actual val WordNotFoundLRes_Dark: Painter | ||
@Composable | ||
get() = painterResource(R.drawable.wordnotfound_l_dark) | ||
|
||
actual val WordNotFoundSRes_Dark: Painter | ||
@Composable | ||
get() = painterResource(R.drawable.wordnotfound_s_dark) | ||
} | ||
|
||
actual val RobotoFontFamily: FontFamily = FontFamily.Default | ||
actual val SourceSerifProFontFamily: FontFamily = FontFamily.Serif |
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,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="18dp" | ||
android:height="18dp" | ||
android:viewportWidth="18" | ||
android:viewportHeight="18"> | ||
<path | ||
android:pathData="M0,6V12H4L9,17V1L4,6H0ZM13.5,9C13.5,7.23 12.48,5.71 11,4.97V13.02C12.48,12.29 13.5,10.77 13.5,9ZM11,0.23V2.29C13.89,3.15 16,5.83 16,9C16,12.17 13.89,14.85 11,15.71V17.77C15.01,16.86 18,13.28 18,9C18,4.72 15.01,1.14 11,0.23Z" | ||
android:fillColor="#D32F2F"/> | ||
</vector> |
Oops, something went wrong.