Patrick Goldinger
2a8c67c4f4
Fully rework SnyggSpec and parsing behavior
...
Co-authored-by: lm41 <lm41@lm41.xyz >
2025-04-02 01:46:00 +02:00
Patrick Goldinger
0d572fc1ae
Add preliminary support for Snygg custom fonts and images
...
Co-authored-by: lm41 <lm41@lm41.xyz >
2025-03-28 03:20:42 +01:00
Patrick Goldinger
7810d8034c
Update Snygg stylesheet.schema.json
2025-03-26 23:24:19 +01:00
Patrick Goldinger
6b9fc555f0
Add multiple text relevant Snygg properties
2025-03-26 23:15:09 +01:00
Patrick Goldinger
f352c768f4
Automate Snygg stylesheet schema generation
...
Additionally, rework the value spec declaration so it is serializable.
2025-03-26 19:48:41 +01:00
Patrick Goldinger
24d6667b52
Rework Snygg selectors to enum
...
Co-authored-by: lm41 <lm41@lm41.xyz >
2025-03-26 03:25:07 +01:00
Patrick Goldinger
d29cfff7d4
Add SnyggButton and SnyggSurface
...
Co-authored-by: lm41 <lm41@lm41.xyz >
2025-03-26 02:32:21 +01:00
Patrick Goldinger
babf58bf53
Clean up Snygg UI helpers and add row/column
...
Co-authored-by: lm41 <lm41@lm41.xyz >
2025-03-26 01:23:27 +01:00
Patrick Goldinger
701088c842
Implement Snygg inherit behavior
...
Co-authored-by: lm41 <lm41@lm41.xyz >
2025-03-26 00:51:35 +01:00
Patrick Goldinger
4fdbb7c235
Add Snygg font-weight and refactor appearance code
2025-03-25 22:50:44 +01:00
Patrick Goldinger
5831bd84ad
Rework SnyggSpec and serialization
2025-03-25 12:14:44 +01:00
Patrick Goldinger
dd97ff09b6
Add support for margin and padding in Snygg
2025-03-25 02:56:06 +01:00
Patrick Goldinger
a5407502f3
Add support for shadowColor in Snygg
2025-03-25 02:02:09 +01:00
Patrick Goldinger
def05ef3a7
Add first preview of SnyggText
2025-03-25 01:48:50 +01:00
Patrick Goldinger
8ec03c09cc
Add further SnyggTheme tests
2025-03-25 00:54:07 +01:00
Patrick Goldinger
a298687f6e
Add snygg dynamic color and compilation tests
...
Co-authored-by: lm41 <lm41@lm41.xyz >
2025-03-24 23:38:53 +01:00
Patrick Goldinger
2488614d22
Set up Snygg UI package for v2
2025-03-24 22:22:02 +01:00
Patrick Goldinger
ca8ca65533
Full rework of snygg dynamic color handling
2025-03-24 22:14:11 +01:00
lm41
8e134cc15f
Move ColorPalette to :lib:color and simplify MaterialYouColor
2025-03-24 20:22:35 +01:00
lm41
17860815b6
Add SnyggShapeValueTest
2025-03-24 18:01:58 +01:00
lm41
bb502b5f8c
Improve tests and code coverage in SnyggRule
2025-03-23 20:18:30 +01:00
Patrick Goldinger
0e51f25bb0
Add basic stylesheet compilation
2025-03-23 20:16:07 +01:00
Patrick Goldinger
c1e50c9684
Add SnyggRule sorting
2025-03-23 14:09:07 +01:00
Patrick Goldinger
c377cd9ed7
Add tests for SnyggSolidColorValue
2025-03-22 23:26:55 +01:00
Patrick Goldinger
ae645fa327
Improve snygg testing build config and usage
2025-03-22 22:09:27 +01:00
Patrick Goldinger
bfd20055fc
Improve SnyggStylesheetEditor and add tests
2025-03-22 21:18:06 +01:00
Patrick Goldinger
15aa6a6bb3
Improve SnyggStylesheet testing
2025-03-22 20:35:09 +01:00
Patrick Goldinger
e4ef14e684
Switch lib.snygg to kotlinx.kover
...
(and regain my sanity, thanks Lars)
2025-03-22 18:32:16 +01:00
Patrick Goldinger
39d7ea4fc0
Add JaCoCo to lib.snygg
2025-03-22 18:17:24 +01:00
Patrick Goldinger
6d330f807a
Improve snygg stylesheet testing and move size test to lib.snygg
2025-03-22 15:53:17 +01:00
Patrick Goldinger
e6bc0657f6
Rework stylesheet serialization and ass basic test
2025-03-22 15:21:59 +01:00
Patrick Goldinger
4686234ba2
Re-implement SnyggRule and WIP stylesheet/theme
...
Co-authored-by: lm41 <lm41@lm41.xyz >
2025-03-22 04:54:00 +01:00
lm41
57e4765ce7
Remove custom implementation of SnyggIdToValueMap
...
The custom List<Pair<String, Any>> implementation of SnyggIdToValueMap
is removed in favor of the typealias for MutableMap<String, Any>. This
way we can work with normal map functions and have a more optimized
data-structure for our use-case.
The SnyggIdToValueMap.new() functions are replaced by a single
snyggIdToValueMapOf() function which allocates a new MutableMap.
The getOrThrow and getOrNull functions are modified to work with the
new underling map data-structure. The add function is a direct alias
to the putAll function.
2025-03-21 18:25:05 +01:00
Patrick Goldinger
aaf26a7a4b
Add TODO comments and plan new Snygg v2 API
2025-03-21 02:40:31 +01:00
Patrick Goldinger
f8f6756b84
Initial Snygg v2 draft
2025-03-21 01:25:17 +01:00
lm41
086e5f7782
Add new JetPrefColorPicker for the keyboard accent color.
...
This commit introduces the new color schemes for spoofed
material you themes. The material you themes can now be
used on any android version that is supported by FlorisBoard
and not just on android 12+.
2025-02-02 19:40:04 +01:00
lm41
9f5e8cddd5
Add :lib:color package
...
This package includes a set of material 3 color schemes
and a map of the corresponding colors to the color schemes.
Please visit the packages README.md for information
on how the schemes were created.
2025-02-02 19:30:39 +01:00
Patrick Goldinger
123b3a6d39
Update copyright year and name in all source files
2025-01-13 00:05:38 +01:00
Lars Mühlbauer
54ed179ead
Fix NoSuchMethodError: removeFirst() on android 14 and lower ( #2734 )
...
* Fix NoSuchMethodError: removeFirst() on android 14 and lower
* Add RequiredApi annotations to SnyggMaterialYou classes
---------
Co-authored-by: Patrick Goldinger <patrick@patrickgold.dev >
2025-01-12 23:25:20 +01:00
Patrick Goldinger
67c083131a
Upgrade to Android 15 ( #2733 )
2025-01-11 17:17:35 +01:00
Patrick Goldinger
a0c7cf2794
Upgrade to Kotlin 2.0 ( #2597 )
2024-09-24 01:59:37 +02:00
Patrick Goldinger
bae3c8ec9d
Fix Rust Cargo.lock file getting rewritten during build ( #2568 )
2024-09-18 18:25:04 +02:00
Patrick Goldinger
9ff7d86a8d
Add hint to find_program for Rust discovery ( #2567 )
2024-09-18 16:56:20 +02:00
Patrick Goldinger
89ab0731d2
Add Cargo.lock files to VCS ( #2566 )
2024-09-18 07:23:24 +02:00
Patrick Goldinger
f1c5b1802b
Release v0.4.0-beta03
2024-08-10 02:47:31 +02:00
Patrick Goldinger
b0649b1b7e
Move lib.snygg to separate module
2024-07-05 19:43:00 +02:00
Patrick Goldinger
bd9f7750aa
Move lib.android to separate module ( #2498 )
2024-07-05 15:59:37 +02:00
Lars Mühlbauer
7724b07a75
Fix missing beta variant build issue ( #2450 )
2024-04-20 16:52:56 +02:00
Patrick Goldinger
97bca076e2
Fix Rust toolchain locating issues
2024-04-07 16:26:39 +02:00
Patrick Goldinger
c5d1d3b31e
Add Rust build support
2024-04-05 01:35:04 +02:00