Commit Graph

10 Commits

Author SHA1 Message Date
Konrad Pozniak 55513e8e2b
Android 12 support, update AndroidX libraries (#2367)
* Android 12 support, update AndroidX libraries

* fix ktlint

* add Android 12 splash screen support

* fix comments in MainActivity

* remove deprecated Intent.ACTION_CLOSE_SYSTEM_DIALOGS

* delete TimelineViewModelTest

* fix notifications on Android 12

* improve splash screen

* handle pending intent flags in a dedicated function
2022-03-09 20:50:23 +01:00
Konrad Pozniak 28e128a4dd
[Tusky10] adjust poll result background, status divider & button outline color (#1685)
* adjust poll result background, status divider & button outline color

* fix navigationBarDividerColor
2020-02-14 19:03:18 +01:00
Konrad Pozniak 8767d2ed3d
Theme refactoring (#1656)
* Theme refactoring

* disable the automatic tinting of surfaces with elevation in dark mode

* make the media warning visible again with the dark theme

* fix nav bar on api 27+

* use correct color for all media warnings
2020-01-30 21:37:28 +01:00
Konrad Pozniak 1d2e42b9f5
fix LoginActivity created twice on unauthenticated appstart (#1352)
* fix LoginActivity created twice on unauthenticated appstart

* make SplashActivity not inherit from BaseActivity
2019-06-29 11:39:50 +02:00
Konrad Pozniak 237f209174
make black theme navigation bar color lighter so it works on One Plus (#1103)
* try to fix black theme navigation bar color on One Plus

* make navbar color lighter
2019-03-04 22:34:27 +01:00
Conny Duck 4b4e58302f fix splashscreen navigationbar color on Android 27+ 2018-08-15 22:17:26 +02:00
Konrad Pozniak d4572a9d0e
some Optimizations for tablets (#647)
* show ComposeActivity as Dialog on tablets

* limit timeline width on large devices

* limit width on large devices for thread view and search

* increase media preview size on large devices
2018-05-16 19:14:53 +02:00
Conny Duck f08efec0b6 simplify theme handling 2018-02-03 23:26:53 +01:00
remi6397 11105f4aac Theming improvements (#502)
* Split theme definitions into day and night

* Add support for Night Mode in code

* Add theme chooser in preferences

* Fix translations

* Adjust IDs

* Adjust preferences for custom themes

* UI tweaks for custom theme support

* Added code for custom theme support 🍅

* Fixed resource display in Kotlin 🍅

* Restored styles

* Updated strings

* Fixed getIdentifier() to fit into setTheme()

* Removed redundant resources

* Reset default theme to "Dusky"

* Fixed night mode handler to maintain compatibility

* Refactor functions to use helper methods

* Added license block

* Added preview to theme selector

* Added color identifier getter helper method

* Fixed reference in AccountMediaFragment

* Cleanup

* Fixed navbar foreground not changing color

* Fix fallback theme switch(){}

* Enable location-based daylight trigger

* Cleanup

* Modified theming strategy to reduce clutter in preferences

* Updated translations for latest version

* Removed "Default" theme flavor from settings

* Updated Polish translations 🇵🇱

* Modified TwilightManager handling code to support Android M's UiModeManager features and moved it to its own function

* Updated Polish translations 🇵🇱

* Cleanup; Fixed hardcoded string

* Added missing escape in string

* Removed permission request dialog.

As we now use native UiModeManager APIs that don't need special permission for Android 6.0 and above, we no longer need to bother user with Android M+ specific location permission request dialog.

* Increased readability of ThemeUtil class

* Refactored ThemeUtils.setAppNightMode method

* Cleanup
2018-01-20 13:39:01 +01:00
Conny Duck 2e4fef69a1 add navigation bar color for API >= 27 2017-12-13 19:35:12 +01:00