Commit Graph

2328 Commits

Author SHA1 Message Date
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
1fc3b536d9 Remove kotest and sub-dependencies 2025-03-22 22:17:16 +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
Lars Mühlbauer
35fd70ce6d Improve crash screen (#2804)
* Improve crash screen

The whole crash screen content is now scrollable
and the buttons to report or close the activity
were moved to a footer. To distinguish between
the log content and the general explanation, a
horizontal divider was added.

* Do not restart activity on orientation change
2025-03-12 00:26:12 +01:00
Lars Mühlbauer
a0ebd62f9a Add toggle for keyboard label language (#2811) 2025-03-12 00:25:58 +01:00
Lars Mühlbauer
3dacd3c2d0 Rework one-handed mode. (#2801)
* Rework one-handed mode.

The one-handed mode now remembers the position
where it was disabled and opens to this position
the next time it is activated.

* Add seperade `TOGGLE_COMPACT_LAYOUT` keycode

* Update AppPrefs.kt

* Update KeyboardScreen.kt

* Update ComputingEvaluator.kt
2025-03-11 23:02:51 +01:00
Lars Mühlbauer
c73b8dda0b Do not ignore flagTextNoSuggestions. (#2807)
Fixes: #2806
2025-03-11 20:38:01 +01:00
Lars Mühlbauer
5353a01226 Refactor Settings (#2780)
* Remove old migration rules

* Rename advanced settings to other and move incognito settings to typing

* Move clipboard suggestions to clipboard screen

* Move other to correct alphabetical location

* Optimize++
2025-03-05 00:08:24 +01:00
florisboard-bot
34f8fec2f6 Update translations from Crowdin 2025-03-04 22:39:56 +01:00
npnpatidar
7199fcdf12 Devanagari Script and Hindi Language Layout Added (#2723)
* test commit

* hi-IN popupmappings id added

* basic layout

* heart replaces with space

* code corrected

* lots of other keys added

* all characters have been added

* popmappings rearranged

* some positional change

* * and \ won't popup due to क्ष and  ज्ञ

* ओ औ code correced

* some vovels reordered

* Hindi does not capitalization concept
2025-03-04 22:27:16 +01:00
Lars Mühlbauer
8319f563b9 Add support for switching the subtype on space bar long press (#2781)
* Add initial support for switching the subtype on space bar long press

* Fix keyboard presses behind the header panel

* Fix taps behind sheet

* Extract string ressource and refactor code

* Instant select subtype

* Persist suptype change in prefs
2025-03-04 22:23:24 +01:00
Lars Mühlbauer
45efe52159 Add new screenshot generator and update fastlane images (#2787)
* Add new screenshot generator and update fastlane images

* Update featureGraphic.png to match g-play requirements
2025-03-04 21:46:54 +01:00
Lars Mühlbauer
7a286b932b Update snygg dynamic color scheme on wallpaper change (#2778)
* Update snygg dynamic color scheme on wallpaper change

* Move broadcast receiver handling to FlorisImeService and properly unregister the receiver

* Set systembar color on stylesheet change
2025-03-04 21:08:45 +01:00
Lars Mühlbauer
df3f84e96d Fix text being rendered behind the top app bar (#2758)
* Fix text being rendered behind the top app bar

This commit fixes an issue where the text was rendered
behind the top app bar in the crash dialog activity by
removing the top app bar in the style and adding a top
app bar in the layout XML.

* Fix toolbar rendering messed up in crash dialog screen

---------

Co-authored-by: Patrick Goldinger <patrick@patrickgold.dev>
2025-02-14 13:13:44 +01:00
Lars Mühlbauer
4cc2216940 Fix switching back from voice ime (#2684) (#2759)
This commit fixes an issue where the voice ime was
not possible to switch back to FlorisBoard, because
the keyboard subtype was not specified.
2025-02-14 12:23:46 +01:00
Lars Mühlbauer
21fdd31c88 Fix BottomSheetContent drawing behind system nav bar (#2757)
This commit fixes an issue where the BottomSheetContent
was drawn behind the system navigation bar. To fix this
issue, I applied the saveDrawingPadding Modifier to the
AnimatedVisibility. There was a color problem on the
system navigation bar, so I set the background color to
SheetOutOfBoundsBgColorInactive. Now the system nav bar
is colored the right way.
2025-02-14 12:20:13 +01:00
Lars Mühlbauer
53c6cb52ca Fix crash when opening clipboard history (#2756)
This Commit fixes a crash when opening the clipboard history
with a theme which does not provide a sp size for the header
or the clipboard item. The sp value is now saveTimes multiplied
with 1f.
2025-02-14 12:15:39 +01:00