2020-04-25 17:41:17 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<resources>
|
|
|
|
|
2020-08-20 18:21:55 +02:00
|
|
|
<!-- Light theme -->
|
2022-08-07 21:34:02 +02:00
|
|
|
<style name="AppThemeLight" parent="Theme.Material3.Light.NoActionBar">
|
2020-04-25 17:41:17 +02:00
|
|
|
<item name="android:statusBarColor">@color/lightThemeBackground</item>
|
|
|
|
<item name="android:windowLightStatusBar">true</item>
|
|
|
|
<item name="android:typeface">monospace</item>
|
|
|
|
<item name="colorAccent">@color/colorAccent</item>
|
|
|
|
<item name="android:textColorSecondary">@color/lightThemeTextColor</item>
|
2020-08-09 10:23:51 +02:00
|
|
|
<item name="colorPrimary">@color/darkGreen</item>
|
|
|
|
<item name="colorSecondary">@color/lightThemeTextColor</item>
|
2022-08-12 04:01:51 +02:00
|
|
|
<item name="colorOnSurfaceVariant">@color/lightThemeTextColor</item>
|
|
|
|
<item name="colorSecondaryContainer">@color/lightThemeColorSecondaryContainer</item>
|
2020-04-25 17:41:17 +02:00
|
|
|
|
2020-04-28 14:39:41 +02:00
|
|
|
<item name="diffAddedColor">@color/lightThemeDiffAddedColor</item>
|
|
|
|
<item name="diffRemovedColor">@color/lightThemeDiffRemovedColor</item>
|
|
|
|
<item name="diffSelectedColor">@color/lightThemeDiffSelectedColor</item>
|
2020-04-25 17:41:17 +02:00
|
|
|
<item name="primaryTextColor">@color/lightThemeTextColor</item>
|
|
|
|
<item name="primaryBackgroundColor">@color/lightThemeBackground</item>
|
|
|
|
<item name="inputBackgroundColor">@color/lightThemeInputBackground</item>
|
2020-11-08 19:58:47 +01:00
|
|
|
<item name="inputSelectedColor">@color/lightThemInputSelected</item>
|
2020-04-25 17:41:17 +02:00
|
|
|
<item name="inputTextColor">@color/lightThemeInputTextColor</item>
|
|
|
|
<item name="checkboxStyle">@style/AppThemeLightCheckBoxStyle</item>
|
|
|
|
<item name="selectedTextColor">@color/darkGreen</item>
|
|
|
|
<item name="alertDialogTheme">@style/AppThemeLightConfirmDialog</item>
|
|
|
|
<item name="popupMenuStyle">@style/AppThemeLightPopupMenuStyle</item>
|
2020-07-12 19:18:50 +02:00
|
|
|
<item name="android:homeAsUpIndicator">@drawable/ic_arrow_back</item>
|
2020-04-25 17:41:17 +02:00
|
|
|
<item name="autoCompleteTextViewStyle">@style/AppThemeLightSearchAutoCompleteTextView</item>
|
|
|
|
<item name="hintColor">@color/hintColor</item>
|
|
|
|
<item name="colorControlActivated">@color/darkGreen</item>
|
|
|
|
<item name="dividerColor">@color/lightThemeDividerColor</item>
|
2020-06-24 22:29:58 +02:00
|
|
|
<item name="bottomSheetDialogTheme">@style/AppThemeLightBottomSheetDialog</item>
|
2020-07-19 12:24:47 +02:00
|
|
|
<item name="searchViewStyle">@style/AppSearchViewStyle</item>
|
2020-08-09 10:23:51 +02:00
|
|
|
<item name="progressIndicatorColor">@color/darkGreen</item>
|
2020-08-20 18:21:55 +02:00
|
|
|
<item name="fabColor">@color/darkGreen</item>
|
|
|
|
<item name="iconsColor">@color/darkGreen</item>
|
|
|
|
<item name="pagerTabIndicatorColor">@color/darkGreen</item>
|
2020-09-05 15:43:29 +02:00
|
|
|
<item name="android:actionOverflowButtonStyle">@style/customOverflowButtonStyle</item>
|
|
|
|
<item name="actionOverflowMenuStyle">@style/customOverflowMenuStyle</item>
|
2020-09-13 06:57:04 +02:00
|
|
|
<item name="colorSurface">@color/lightThemeInputBackground</item>
|
2020-10-20 20:09:07 +02:00
|
|
|
<item name="shapeAppearanceSmallComponent">@style/inputsMaterialComponentCorner</item>
|
2021-03-09 22:15:42 +01:00
|
|
|
<item name="android:windowAnimationStyle">@style/WindowAnimationTransition</item>
|
2022-08-07 21:34:02 +02:00
|
|
|
<item name="switchStyle">@style/MaterialSwitch</item>
|
Don't use TinyDB as cache (#1034)
Do not use TinyDB as a cache or a way to send data between activities.
### How is this working
Instead of saving everything into the TinyDB, I created three `Context`s (a `RepositoryContext`, an `IssueContext` and an `AccountContext`). All are used to store things like API or database values/models and additional data, e.g. the `RepositoryContext` also contains information about the current filter state of a repository (issues, pull requests, releases/tags and milestones). These are sent using `Intent`s and `Bundle`s between activities and fragments. Changing a field (e.g. filter state) in any fragment changes it also for the whole repository (or at least it should do so).
Due to the size of the changes (after https://codeberg.org/gitnex/GitNex/commit/c9172f85efafd9f25739fdd8385e1904b711ea41, Git says `154 files changed, 3318 insertions(+), 3835 deletions(-)`) **I highly recommend you to create a beta/pre release before releasing a stable version**.
Additional changes:
* after logging out, the account remains in the account list (with a note) and you can log in again (you can't switch to this account)
* repositories and organizations are clickable on user profiles
* deleted two unused classes
Once finished, hopefully
* closes #354
* replaces #897
* fixes #947
* closes #1001
* closes #1015
* marks #876 and #578 as `Wontfix` since they are not necessary at this point
* and all the other TinyDB issues
Co-authored-by: qwerty287 <ndev@web.de>
Co-authored-by: M M Arif <mmarif@noreply.codeberg.org>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1034
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
2022-03-13 03:59:13 +01:00
|
|
|
<item name="isDark">0</item>
|
2020-04-25 17:41:17 +02:00
|
|
|
</style>
|
2020-08-20 18:21:55 +02:00
|
|
|
<!-- Light theme -->
|
|
|
|
|
|
|
|
<!-- Retro theme -->
|
2022-08-07 21:34:02 +02:00
|
|
|
<style name="AppThemeRetro" parent="Theme.Material3.Light.NoActionBar">
|
2020-08-20 18:21:55 +02:00
|
|
|
<item name="android:statusBarColor">@color/retroThemeBackground</item>
|
|
|
|
<item name="android:windowLightStatusBar">true</item>
|
|
|
|
<item name="android:typeface">monospace</item>
|
|
|
|
<item name="colorAccent">@color/colorAccent</item>
|
|
|
|
<item name="android:textColorSecondary">@color/retroThemeTextColor</item>
|
|
|
|
<item name="android:textColorPrimary">@color/retroThemeTextColor</item>
|
|
|
|
<item name="colorPrimary">@color/retroThemeColorPrimary</item>
|
|
|
|
<item name="colorSecondary">@color/retroThemeColorSecondary</item>
|
2022-08-12 04:01:51 +02:00
|
|
|
<item name="colorOnSurfaceVariant">@color/retroThemeTextColor</item>
|
2020-08-20 18:21:55 +02:00
|
|
|
|
|
|
|
<item name="diffAddedColor">@color/retroThemeDiffAddedColor</item>
|
|
|
|
<item name="diffRemovedColor">@color/retroThemeDiffRemovedColor</item>
|
|
|
|
<item name="diffSelectedColor">@color/retroThemeDiffSelectedColor</item>
|
|
|
|
<item name="primaryTextColor">@color/retroThemeTextColor</item>
|
|
|
|
<item name="primaryBackgroundColor">@color/retroThemeBackground</item>
|
|
|
|
<item name="inputBackgroundColor">@color/retroThemeInputBackground</item>
|
2020-11-08 19:58:47 +01:00
|
|
|
<item name="inputSelectedColor">@color/retroThemeInputSelected</item>
|
2020-08-20 18:21:55 +02:00
|
|
|
<item name="inputTextColor">@color/retroThemeInputTextColor</item>
|
|
|
|
<item name="checkboxStyle">@style/AppThemeRetroCheckBoxStyle</item>
|
|
|
|
<item name="selectedTextColor">@color/retroThemeColorPrimary</item>
|
|
|
|
<item name="alertDialogTheme">@style/AppThemeRetroConfirmDialog</item>
|
|
|
|
<item name="popupMenuStyle">@style/AppThemeRetroPopupMenuStyle</item>
|
|
|
|
<item name="android:homeAsUpIndicator">@drawable/ic_arrow_back</item>
|
|
|
|
<item name="autoCompleteTextViewStyle">@style/AppThemeRetroSearchAutoCompleteTextView</item>
|
|
|
|
<item name="hintColor">@color/hintColor</item>
|
|
|
|
<item name="colorControlActivated">@color/retroThemeColorPrimary</item>
|
|
|
|
<item name="dividerColor">@color/retroThemeDividerColor</item>
|
|
|
|
<item name="bottomSheetDialogTheme">@style/AppThemeLightBottomSheetDialog</item>
|
|
|
|
<item name="searchViewStyle">@style/AppSearchViewStyle</item>
|
|
|
|
<item name="progressIndicatorColor">@color/retroThemeColorPrimary</item>
|
|
|
|
<item name="fabColor">@color/retroThemeColorPrimary</item>
|
|
|
|
<item name="iconsColor">@color/retroThemeColorPrimary</item>
|
|
|
|
<item name="pagerTabIndicatorColor">@color/retroThemeColorPrimary</item>
|
2020-09-05 15:43:29 +02:00
|
|
|
<item name="android:actionOverflowButtonStyle">@style/customOverflowButtonStyle</item>
|
|
|
|
<item name="actionOverflowMenuStyle">@style/customOverflowMenuStyle</item>
|
2020-09-13 06:57:04 +02:00
|
|
|
<item name="colorSurface">@color/retroThemeInputBackground</item>
|
2020-10-20 20:09:07 +02:00
|
|
|
<item name="shapeAppearanceSmallComponent">@style/inputsMaterialComponentCorner</item>
|
2021-03-09 22:15:42 +01:00
|
|
|
<item name="android:windowAnimationStyle">@style/WindowAnimationTransition</item>
|
2022-08-07 21:34:02 +02:00
|
|
|
<item name="switchStyle">@style/MaterialSwitch</item>
|
Don't use TinyDB as cache (#1034)
Do not use TinyDB as a cache or a way to send data between activities.
### How is this working
Instead of saving everything into the TinyDB, I created three `Context`s (a `RepositoryContext`, an `IssueContext` and an `AccountContext`). All are used to store things like API or database values/models and additional data, e.g. the `RepositoryContext` also contains information about the current filter state of a repository (issues, pull requests, releases/tags and milestones). These are sent using `Intent`s and `Bundle`s between activities and fragments. Changing a field (e.g. filter state) in any fragment changes it also for the whole repository (or at least it should do so).
Due to the size of the changes (after https://codeberg.org/gitnex/GitNex/commit/c9172f85efafd9f25739fdd8385e1904b711ea41, Git says `154 files changed, 3318 insertions(+), 3835 deletions(-)`) **I highly recommend you to create a beta/pre release before releasing a stable version**.
Additional changes:
* after logging out, the account remains in the account list (with a note) and you can log in again (you can't switch to this account)
* repositories and organizations are clickable on user profiles
* deleted two unused classes
Once finished, hopefully
* closes #354
* replaces #897
* fixes #947
* closes #1001
* closes #1015
* marks #876 and #578 as `Wontfix` since they are not necessary at this point
* and all the other TinyDB issues
Co-authored-by: qwerty287 <ndev@web.de>
Co-authored-by: M M Arif <mmarif@noreply.codeberg.org>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1034
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
2022-03-13 03:59:13 +01:00
|
|
|
<item name="isDark">0</item>
|
2020-08-20 18:21:55 +02:00
|
|
|
</style>
|
|
|
|
<!-- Retro theme -->
|
2020-04-25 17:41:17 +02:00
|
|
|
|
2020-06-24 22:29:58 +02:00
|
|
|
</resources>
|