cloudstream/app/src/main/res/values/styles.xml

231 lines
12 KiB
XML
Raw Normal View History

2021-04-30 17:20:15 +00:00
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents.NoActionBar">
2021-08-14 17:42:47 +00:00
<item name="android:windowBackground">@drawable/splash_background</item>
2021-09-19 20:33:39 +00:00
<item name="android:navigationBarColor">?attr/primaryBlackBackground</item>
<item name="android:colorEdgeEffect">?attr/textColor</item>
2021-04-30 17:20:15 +00:00
2021-08-14 17:42:47 +00:00
<!--<item name="android:navigationBarColor">@color/darkBackground</item>-->
2021-09-19 20:33:39 +00:00
<item name="android:statusBarColor">?attr/iconGrayBackground</item>
2021-04-30 17:20:15 +00:00
<item name="android:textColorHint">@color/searchColor</item>
<item name="android:editTextColor">@color/textColor</item>
<item name="android:scrollbarThumbVertical">@null</item>
<item name="android:scrollbarThumbHorizontal">@null</item>
2021-05-12 21:51:02 +00:00
<item name="android:windowTranslucentStatus">true</item> <!--true-->
2021-04-30 17:20:15 +00:00
<item name="android:windowTranslucentNavigation">false</item>
<item name="alertDialogTheme">@style/Theme.AlertDialog</item>
2021-05-12 21:51:02 +00:00
<item name="android:textViewStyle">@style/AppTextViewStyle</item>
<item name="android:buttonStyle">@style/AppButtonStyle</item>
<item name="materialButtonStyle">@style/AppMaterialButtonStyle</item>
<item name="preferenceFragmentCompatStyle">@style/PreferenceTheme</item>
<item name="bottomSheetDialogTheme">@style/AppBottomSheetDialogTheme</item>
<item name="searchViewStyle">@style/AppSearchViewStyle</item>
<item name="tabStyle">@style/Theme.Widget.Tabs</item>
2021-06-06 18:06:01 +00:00
2021-06-10 18:21:42 +00:00
<item name="castExpandedControllerStyle">
@style/CustomCastExpandedController
</item>
<item name="castMiniControllerStyle">@style/CustomCastMiniController</item>
2021-06-15 23:25:58 +00:00
<!--<item name="mediaRouteButtonTint">?attr/colorPrimary</item>-->
2021-06-10 18:21:42 +00:00
2021-06-06 18:06:01 +00:00
<!-- DEF STYLE -->
2021-09-19 20:33:39 +00:00
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
2021-06-06 18:06:01 +00:00
<item name="textColor">@color/textColor</item>
<item name="colorItemSeen">@color/colorItemSeen</item>
<item name="grayTextColor">@color/grayTextColor</item>
2021-09-19 20:33:39 +00:00
<item name="darkBackground">@color/primaryGrayBackground</item>
<item name="primaryBlackBackground">@color/primaryBlackBackground</item>
<item name="iconGrayBackground">@color/iconGrayBackground</item>
2021-06-06 18:06:01 +00:00
<item name="boxItemBackground">@color/itemBackground</item>
<item name="iconColor">@color/iconColor</item>
<item name="white">#FFF</item>
2021-04-30 17:20:15 +00:00
</style>
2021-08-14 17:42:47 +00:00
<style name="LoadedStyle">
<item name="android:navigationBarColor">?attr/darkBackground</item>
2021-09-19 20:33:39 +00:00
<item name="android:windowBackground">?attr/primaryBlackBackground</item>
2021-08-14 17:42:47 +00:00
</style>
2021-05-12 21:51:02 +00:00
<style name="AppSearchViewStyle"
parent="Theme.MaterialComponents.NoActionBar">
<item name="android:searchIcon">@drawable/search_icon</item>
<item name="android:queryHint">@string/search_hint</item>
<item name="android:background">@color/transparent</item>
<item name="android:fontFamily">@font/google_sans</item>
</style>
<style name="AppBottomSheetDialogTheme"
parent="Theme.Design.Light.BottomSheetDialog">
<item name="bottomSheetStyle">@style/AppModalStyle</item>
</style>
<style name="AppModalStyle"
parent="Widget.Design.BottomSheet.Modal">
<item name="android:background">@drawable/rounded_dialog</item>
2021-10-09 21:59:37 +00:00
<item name="behavior_peekHeight">512dp</item>
2021-05-12 21:51:02 +00:00
</style>
2021-04-30 17:20:15 +00:00
<style name="PreferenceTheme" parent="@style/AppTheme">
</style>
<style name="Theme.AlertDialog" parent="ThemeOverlay.MaterialComponents.Dialog.Alert">
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
<item name="android:windowBackground">@drawable/dialog__window_background</item>
<item name="textAllCaps">false</item>
</style>
2021-05-12 21:51:02 +00:00
<style name="AppTextViewStyle" parent="android:Widget.TextView">
<item name="android:fontFamily">@font/google_sans</item>
2021-04-30 17:20:15 +00:00
</style>
2021-05-12 21:51:02 +00:00
<style name="AppButtonStyle" parent="android:Widget.Holo.Button">
2021-04-30 17:20:15 +00:00
<item name="android:fontFamily">@font/google_sans</item>
</style>
2021-05-12 21:51:02 +00:00
<style name="AppMaterialButtonStyle" parent="Widget.MaterialComponents.Button">
2021-04-30 17:20:15 +00:00
<item name="android:fontFamily">@font/google_sans</item>
</style>
2021-05-12 21:51:02 +00:00
<style name="Theme.Widget.Tabs" parent="Widget.MaterialComponents.TabLayout.Colored">
<item name="tabGravity">center</item>
<item name="backgroundTint">@color/transparent</item>
<item name="tabIndicator">@drawable/tab_selector</item>
2021-09-19 20:33:39 +00:00
<item name="tabIndicatorColor">?attr/colorPrimary</item>
<item name="tabTextColor">?attr/colorPrimary</item>
2021-05-12 21:51:02 +00:00
<item name="tabIndicatorFullWidth">false</item>
<item name="tabIndicatorHeight">3dp</item>
<item name="tabInlineLabel">true</item>
<item name="tabMinWidth">75dp</item>
<item name="tabMode">scrollable</item>
</style>
2021-05-28 13:38:06 +00:00
<style name="AlertDialogCustom" parent="Theme.AppCompat.Dialog.Alert">
2021-06-14 00:00:29 +00:00
<item name="android:windowFullscreen">true</item>
2021-09-19 20:33:39 +00:00
<item name="android:textColor">?attr/textColor</item>
<item name="android:textColorPrimary">?attr/textColor</item>
2021-05-28 13:38:06 +00:00
<!--<item name="android:background">@color/darkBackground</item>-->
<item name="android:textAllCaps">false</item>
<!--<item name="android:colorBackground">@color/darkBackground</item>-->
2021-09-19 20:33:39 +00:00
<item name="textColorAlertDialogListItem">?attr/textColor</item>
<item name="colorControlNormal">?attr/textColor</item>
2021-05-28 13:38:06 +00:00
<!-- colorPrimarySecond used because colorPrimary fails for no reason -->
2021-09-19 20:33:39 +00:00
<item name="colorControlActivated">?attr/colorPrimary</item>
2021-05-28 13:38:06 +00:00
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
<item name="android:windowBackground">@drawable/dialog__window_background</item>
</style>
2021-06-15 16:07:20 +00:00
<style name="AlertDialogCustomTransparent" parent="Theme.AppCompat.Dialog.Alert">
<item name="android:windowBackground">@color/transparent</item>
</style>
2021-07-02 18:46:18 +00:00
<style name="AlertDialogCustomBlack" parent="Theme.AppCompat.Dialog.Alert">
2021-09-19 20:33:39 +00:00
<item name="android:windowBackground">?attr/primaryBlackBackground</item>
2021-07-02 18:46:18 +00:00
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<!-- No backgrounds, titles or window float -->
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsFloating">false</item>
2021-09-19 20:33:39 +00:00
<item name="android:navigationBarColor">?attr/primaryBlackBackground</item>
2021-07-02 18:46:18 +00:00
</style>
2021-06-10 18:21:42 +00:00
2021-06-15 23:25:58 +00:00
<style name="PopupMenu" parent="@android:style/Widget.PopupMenu">
2021-09-19 20:33:39 +00:00
<item name="android:backgroundTint">?attr/primaryBlackBackground</item>
2021-06-15 23:25:58 +00:00
</style>
2021-06-10 18:21:42 +00:00
2021-08-06 20:55:11 +00:00
<style name="SettingsItem">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">50sp</item>
<item name="android:gravity">center_vertical</item>
<item name="android:paddingStart">20dp</item>
<item name="android:paddingEnd">20dp</item>
<item name="android:selectAllOnFocus">true</item>
<item name="android:background">@color/transparent</item>
<item name="android:textColor">?attr/textColor</item>
<item name="android:foreground">?attr/selectableItemBackgroundBorderless</item>
<item name="android:textAppearance">?android:attr/textAppearanceListItemSmall</item>
<item name="drawableEndCompat">@drawable/ic_baseline_keyboard_arrow_right_24</item>
</style>
<style name="NiceButton">
2021-09-02 22:39:49 +00:00
<item name="android:padding">5dp</item>
2021-08-06 20:55:11 +00:00
<item name="android:layout_marginStart">5dp</item>
<item name="android:layout_marginEnd">5dp</item>
2021-10-09 21:59:37 +00:00
<item name="android:layout_height">40dp</item>
2021-08-06 20:55:11 +00:00
<item name="android:textStyle">bold</item>
<item name="android:textAllCaps">false</item>
<item name="iconGravity">textStart</item>
<item name="iconSize">20dp</item>
<item name="cornerRadius">4dp</item>
<item name="android:textSize">15sp</item>
2021-10-09 21:59:37 +00:00
<item name="android:insetTop">0dp</item>
<item name="android:insetBottom">0dp</item>
<item name="android:foreground">@drawable/outline_drawable</item>
2021-08-06 20:55:11 +00:00
</style>
<style name="WhiteButton" parent="NiceButton">
2021-09-19 20:33:39 +00:00
<item name="strokeColor">?attr/iconGrayBackground</item>
2021-08-06 20:55:11 +00:00
<item name="backgroundTint">?attr/textColor</item>
2021-09-19 20:33:39 +00:00
<item name="iconTint">?attr/iconGrayBackground</item>
<item name="android:textColor">?attr/iconGrayBackground</item>
2021-10-09 21:59:37 +00:00
<item name="rippleColor">?attr/primaryBlackBackground</item>
2021-08-06 20:55:11 +00:00
</style>
<style name="BlackButton" parent="NiceButton">
<item name="strokeColor">?attr/textColor</item>
2021-09-19 20:33:39 +00:00
<item name="backgroundTint">?attr/iconGrayBackground</item>
2021-08-06 20:55:11 +00:00
<item name="iconTint">?attr/textColor</item>
<item name="android:textColor">?attr/textColor</item>
<item name="rippleColor">?attr/textColor</item>
</style>
2021-10-09 21:59:37 +00:00
<style name="MultiSelectButton" parent="BlackButton">
<item name="android:layout_height">40dp</item>
<item name="android:layout_width">wrap_content</item>
</style>
<!--@color/white ?attr/colorPrimary-->
<!--CHECK ?attr/darkBackground ?attr/colorPrimary-->
2021-06-10 18:21:42 +00:00
<!-- CHROMECAST -->
<style name="CustomCastExpandedController" parent="CastExpandedController">
<item name="castControlButtons">
@array/cast_expanded_controller_control_buttons
</item>
<!-- <item name="castButtonColor">@null</item>
<item name="castSeekBarSecondaryProgressColor">@color/darkBar
</item>
-->
<item name="castSeekBarProgressAndThumbColor">?attr/colorPrimary</item>
2021-06-10 18:21:42 +00:00
<item name="castBackground">?attr/colorPrimary</item>
<item name="castProgressBarColor">?attr/colorPrimary</item>
<item name="castPlayButtonDrawable">@drawable/ic_baseline_play_arrow_24</item>
<item name="castPauseButtonDrawable">@drawable/netflix_pause</item>
<item name="castStopButtonDrawable">@drawable/cast_ic_expanded_controller_stop</item>
<item name="castSkipPreviousButtonDrawable">@drawable/cast_ic_expanded_controller_skip_previous</item>
<item name="castSkipNextButtonDrawable">@drawable/cast_ic_expanded_controller_skip_next</item>
<item name="castRewind30ButtonDrawable">@drawable/go_back_30</item>
<item name="castForward30ButtonDrawable">@drawable/go_forward_30</item>
</style>
<style name="CustomCastMiniController" parent="CastMiniController">
<item name="castMiniControllerLoadingIndicatorColor">?attr/colorPrimary</item>
<item name="castShowImageThumbnail">true</item>
<item name="castTitleTextAppearance">@style/TextAppearance.AppCompat.Subhead</item>
<item name="castSubtitleTextAppearance">@style/TextAppearance.AppCompat.Caption</item>
2021-06-16 00:15:07 +00:00
<item name="castBackground">@color/transparent</item> <!--CHECK bitDarkerGrayBackground darkBackground-->
2021-06-10 18:21:42 +00:00
<item name="castProgressBarColor">?attr/colorPrimary</item>
<item name="castStopButtonDrawable">@drawable/cast_ic_mini_controller_stop</item>'
<item name="castLargeStopButtonDrawable">@drawable/cast_ic_mini_controller_stop_large</item>
<item name="castSkipPreviousButtonDrawable">@drawable/cast_ic_mini_controller_skip_prev</item>
<item name="castSkipNextButtonDrawable">@drawable/cast_ic_mini_controller_skip_next</item>
<item name="castRewind30ButtonDrawable">@drawable/go_back_30</item>
<item name="castForward30ButtonDrawable">@drawable/go_forward_30</item>
<item name="castMuteToggleButtonDrawable">@drawable/cast_ic_mini_controller_mute</item>
<item name="castClosedCaptionsButtonDrawable">@drawable/cast_ic_mini_controller_closed_caption</item>
</style>
2021-04-30 17:20:15 +00:00
</resources>