/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
android/res/values/themes.xml
196 строк
9 KB
Arsentiy Milchakov
[android] get rid editor.timepicker style because of it works incorrectly
09 сен 2019, 16:01
09 сен 2019, 16:01
e81da1c
Код
Авторство
О чём код?
<?xml version="1.0" encoding="utf-8"?> <resources xmlns:tools="http://schemas.android.com/tools"> <style name="MwmTheme" parent="MwmTheme.Base"/> <style name="MwmTheme.Night" parent="MwmTheme.Night.Base"/> <style name="MwmTheme.MainActivity"> <item name="android:colorPrimaryDark" tools:targetApi="lollipop">@android:color/black</item> <item name="android:windowBackground">@null</item> </style> <style name="MwmTheme.Night.MainActivity"> <item name="android:colorPrimaryDark" tools:targetApi="lollipop">@android:color/black</item> <item name="android:windowBackground">@null</item> </style> <style name="MwmTheme.Settings"> <item name="android:windowBackground">@color/bg_cards</item> </style> <style name="MwmTheme.Night.Settings"> <item name="colorSwitchThumbNormal">?android:colorControlNormal</item> <item name="android:windowBackground">@color/bg_cards_night</item> </style> <style name="MwmTheme.CardBg"> <item name="android:windowBackground">@color/bg_cards</item> </style> <style name="MwmTheme.Night.CardBg"> <item name="android:windowBackground">@color/bg_cards_night</item> </style> <style name="MwmTheme.WindowBg"> <item name="android:windowBackground">@color/bg_window</item> </style> <style name="MwmTheme.Night.WindowBg"> <item name="android:windowBackground">@color/bg_window_night</item> </style> <style name="MwmTheme.AlertDialog" parent="Theme.AppCompat.Light.Dialog.Alert"> <item name="colorAccent">@color/base_accent</item> <item name="android:textColorPrimary">@color/black_secondary</item> <item name="android:textSize">@dimen/text_size_body_1</item> <item name="android:windowTitleStyle">@style/MwmTheme.DialogTitleStyle.Light</item> </style> <style name="MwmTheme.DialogTitleBase"> <item name="android:textSize">@dimen/text_size_alert_dialog_title</item> <item name="android:fontFamily" tools:ignore="NewApi">@string/robotoMedium</item> </style> <style name="MwmTheme.DialogTitleStyle.Light" parent="MwmTheme.DialogTitleBase"> <item name="android:textColor">@color/black_primary</item> </style> <style name="MwmTheme.Night.AlertDialog" parent="Theme.AppCompat.Dialog.Alert"> <item name="colorAccent">@color/base_accent_night</item> <!-- Used for the message in the dialog --> <item name="android:textColorPrimary">@color/white_secondary</item> <item name="android:textSize">@dimen/text_size_body_1</item> <!-- Used for the title in the dialog --> <item name="android:windowTitleStyle">@style/MwmTheme.DialogTitleStyle.Night</item> </style> <style name="MwmTheme.DialogTitleStyle.Night" parent="MwmTheme.DialogTitleBase"> <item name="android:textColor">@color/white_primary</item> </style> <style name="MwmTheme.DialogFragment.TitleStyle" parent="Base.DialogWindowTitle.AppCompat"> <item name="android:textAppearance">@style/MwmTextAppearance.Title</item> <item name="android:fontFamily" tools:targetApi="jelly_bean">@string/robotoMedium</item> </style> <style name="MwmTheme.DialogFragment.Fullscreen" parent="Theme.AppCompat.Light"> <item name="colorPrimary">@color/bg_primary</item> <item name="android:colorPrimaryDark" tools:targetApi="lollipop">?statusBar</item> <item name="colorAccent">@color/base_accent</item> <item name="clickableBackground">?selectableItemBackground</item> <item name="colorControlNormal">@color/text_light_hint</item> <item name="android:windowIsFloating">false</item> <item name="android:textColorHint">@color/text_dark_hint</item> <item name="android:textViewStyle">@style/MwmWidget.TextView</item> <item name="android:colorBackgroundCacheHint">@null</item> <item name="android:fontFamily" tools:targetApi="jelly_bean">@string/robotoRegular</item> <item name="android:windowTranslucentStatus" tools:targetApi="kitkat">true</item> <item name="android:statusBarColor" tools:targetApi="lollipop">@android:color/transparent</item> </style> <style name="MwmTheme.DialogFragment.NoFullscreen" parent="MwmTheme.DialogFragment.Fullscreen"> <item name="android:windowTranslucentStatus" tools:targetApi="kitkat">false</item> <item name="android:statusBarColor" tools:targetApi="lollipop">@color/bg_dialog_translucent</item> </style> <style name="MwmTheme.DialogFragment.Fullscreen.Night" parent="Theme.AppCompat"> <item name="colorPrimary">@color/bg_primary_night</item> <item name="android:colorPrimaryDark" tools:targetApi="lollipop">?statusBar</item> <item name="colorAccent">@color/base_accent_night</item> <item name="clickableBackground">?selectableItemBackground</item> <item name="colorControlNormal">@color/text_dark_hint</item> <item name="android:windowIsFloating">false</item> <item name="android:textColorHint">@color/text_light_hint</item> <item name="android:textViewStyle">@style/MwmWidget.TextView</item> <item name="android:colorBackgroundCacheHint">@null</item> <item name="android:fontFamily" tools:targetApi="jelly_bean">@string/robotoRegular</item> <item name="android:windowTranslucentStatus" tools:targetApi="kitkat">true</item> <item name="android:statusBarColor" tools:targetApi="lollipop">@android:color/transparent</item> </style> <style name="MwmTheme.DialogFragment.NoFullscreen.Night" parent="MwmTheme.DialogFragment.Fullscreen.Night"> <item name="android:windowTranslucentStatus" tools:targetApi="kitkat">false</item> <item name="android:statusBarColor" tools:targetApi="lollipop">@color/bg_dialog_translucent</item> </style> <style name="MwmTheme.DialogFragment.Fullscreen.Translucent"> <item name="android:colorPrimaryDark" tools:targetApi="lollipop">@android:color/black</item> <item name="android:windowBackground">@color/bg_dialog_translucent</item> <item name="android:windowIsTranslucent">true</item> </style> <style name="MwmMain.DialogFragment.TimePicker" parent="Theme.AppCompat.Light.Dialog.Alert"> <item name="colorAccent">@color/base_accent</item> <item name="android:fontFamily" tools:targetApi="jelly_bean">@string/robotoMedium</item> <item name="android:windowBackground">@color/bg_cards</item> <item name="android:background">@color/bg_cards</item> </style> <style name="MwmMain.DialogFragment.TimePicker.Night" parent="Theme.AppCompat.Dialog.Alert"> <item name="colorAccent">@color/base_accent_night</item> <item name="android:fontFamily" tools:targetApi="jelly_bean">@string/robotoMedium</item> <item name="android:windowBackground">@color/bg_cards_night</item> <item name="android:background">@color/bg_cards_night</item> </style> <style name="BottomSheet.Dialog.Dark"> <item name="android:textColorPrimary">@color/text_light</item> <item name="android:textColorSecondary">@color/text_light</item> <item name="android:textColorHint">@color/text_light_subtitle</item> <item name="bs_dialogBackground">?panel</item> <item name="bs_dividerColor">@color/bs_dark_divider_color</item> <item name="bs_listStyle">@style/BottomSheet.List.Dark</item> <item name="bs_closeDrawable">@drawable/bs_ic_clear</item> <item name="bs_moreDrawable">@drawable/bs_ic_more</item> </style> <style name="MwmTheme.Editor"/> <style name="MwmTheme.Downloader"> <item name="status_done">@drawable/ic_downloader_done</item> <item name="status_downloadable">@drawable/ic_downloader_download</item> <item name="status_failed">@drawable/downloader_failed</item> <item name="status_updatable">@drawable/downloader_update</item> <item name="status_folder">@drawable/ic_downloader_folder</item> <item name="status_folder_done">@drawable/ic_downloader_folder_done</item> </style> <style name="MwmTheme.Downloader.Night"> <item name="status_done">@drawable/ic_downloader_done_night</item> <item name="status_downloadable">@drawable/ic_downloader_download_night</item> <item name="status_folder">@drawable/ic_downloader_folder_night</item> <item name="status_folder_done">@drawable/ic_downloader_folder_done_night</item> </style> <style name="MwmTheme.NavButtons"> <item name="nav_background">@drawable/button_navigation_circle</item> <item name="searchLayoutBackground">@drawable/bg_circle_panel</item> </style> <style name="MwmTheme.NavButtons.Night" parent="MwmTheme.Night"> <item name="nav_background">@drawable/button_navigation_circle_night</item> <item name="searchLayoutBackground">@drawable/bg_circle_panel_night</item> </style> <style name="MwmTheme.Navigation"> <item name="iconTint">@color/white_primary</item> <item name="newsMarker">@drawable/news_marker</item> </style> <style name="MwmTheme.Navigation.Night" parent="MwmTheme.Night"> <item name="iconTint">@color/black_primary</item> <item name="newsMarker">@drawable/news_marker_night</item> </style> <style name="MwmTheme.FullScreenGalleryActivity"> <item name="colorPrimary">@android:color/transparent</item> <item name="android:colorPrimaryDark" tools:targetApi="lollipop">@android:color/black</item> <item name="android:windowBackground">@null</item> </style> <style name="MwmTheme.Night.FullScreenGalleryActivity"> <item name="colorPrimary">@android:color/transparent</item> <item name="android:colorPrimaryDark" tools:targetApi="lollipop">@android:color/black</item> <item name="android:windowBackground">@null</item> </style> </resources>