You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
FYReader/app/src/main/res/values/styles.xml

229 lines
9.5 KiB

<resources>
<style name="MAppTheme" parent="Base.AppTheme">
<!-- Customize your theme here. -->
</style>
<!-- Base application theme. -->
<style name="Base.AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:windowBackground">@color/colorBackground</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="actionOverflowMenuStyle">@style/PopupMenu</item>
<item name="android:itemTextAppearance">@style/MenuItemTextStyle</item>
<item name="android:popupMenuStyle">@style/PopupMenu</item>
<item name="actionBarStyle">@style/AppTheme.AppBarOverlay.Dark</item>
</style>
<!-- TextAppearance:修改 -->
<style name="MAppTheme.TextAppearance" />
<style name="MenuItemTextStyle" parent="@android:style/TextAppearance.Widget.IconMenu.Item">
<item name="android:textColor">@color/menu_color_default</item>
<item name="android:textSize">@dimen/text_normal_size</item>
</style>
<style name="PopupMenu" parent="Widget.AppCompat.PopupMenu">
<item name="android:popupBackground">@color/background_menu</item>
</style>
<style name="TabLayoutTextStyle" parent="TextAppearance.AppCompat.Widget.ActionBar.Title.Inverse">
<item name="android:textSize">16sp</item>
</style>
<style name="jmui_default_dialog_style">
<!--<item name="android:windowIsFloating">true</item>-->
<!--<item name="android:windowIsTranslucent">true</item>-->
<item name="android:windowFrame">@null</item>
<item name="windowNoTitle">true</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
<!--<item name="android:radius">5dp</item>-->
</style>
<!--app中的标题:字体 字号 颜色 -->
<!--共同拥有的东西-->
<style name="EditTextStyle">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">50dp</item>
<item name="background">@drawable/editview_shape</item>
<item name="android:layout_marginTop">20dp</item>
<item name="android:paddingLeft">7dp</item>
<item name="android:drawablePadding">7dp</item>
<item name="android:textSize">20sp</item>
<item name="android:maxLines">1</item>
</style>
<style name="MyCheckBox" parent="Theme.AppCompat.Light">
<item name="colorControlNormal">@color/gray</item>
<item name="colorControlActivated">@color/colorAccent</item>
</style>
<declare-styleable name="CircleCheckbox">
<attr name="showOuterCircle" format="boolean" />
<attr name="tickColor" format="string"/>
<attr name="outerCircleColor" format="string"/>
<attr name="innerCircleColor" format="string"/>
<attr name="textColor" format="string"/>
<attr name="circleBorderColor" format="string"/>
<attr name="outerCircleRadius" format="dimension"/>
<attr name="innerCircleRadius" format="dimension"/>
<attr name="textSize" format="dimension"/>
<attr name="borderThickness" format="dimension"/>
<attr name="tickThickness" format="dimension"/>
<attr name="textLeftPadding" format="dimension"/>
<attr name="text" format="string"/>
</declare-styleable>
<style name="SingleLine">
<item name="android:singleLine">true</item>
<item name="android:maxLines">1</item>
<item name="android:ellipsize">end</item>
</style>
<style name="File_Tag">
<item name="android:layout_width">38dp</item>
<item name="android:layout_height">18dp</item>
<item name="android:textSize">12sp</item>
<item name="android:textColor">@color/white</item>
<item name="android:textStyle">bold</item>
<item name="android:gravity">center</item>
</style>
<!--BookDetail-->
<style name="BottomNavigationViewTheme" />
<style name="BottomNavigation" />
<style name="BottomNavigation.GroupView">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">56dp</item>
<item name="android:layout_gravity">bottom</item>
<item name="android:elevation">4dp</item>
<item name="android:orientation">horizontal</item>
</style>
<style name="BottomNavigation.ItemView">
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_weight">1</item>
<item name="android:clickable">true</item>
</style>
<style name="BottomNavigation.ItemView.Icon" parent="">
<item name="android:layout_marginTop">8dp</item>
<item name="android:layout_width">24dp</item>
<item name="android:layout_height">24dp</item>
<item name="android:layout_gravity">top|center_horizontal</item>
<item name="android:layout_centerHorizontal">true</item>
<item name="android:layout_alignParentTop">true</item>
</style>
<style name="BottomNavigation.ItemView.Title" parent="">
<item name="android:layout_marginBottom">8dp</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">bottom|center_horizontal</item>
<item name="android:layout_centerHorizontal">true</item>
<item name="android:layout_alignParentBottom">true</item>
<item name="android:textSize">12sp</item>
</style>
<style name="toolbar_title_textStyle">
<item name="android:textSize">@dimen/text_normal_size</item>
<item name="android:textColor">@color/white</item>
</style>
<style name="toolbar_subtitle_textStyle">
<item name="android:textSize">@dimen/text_default_size</item>
<item name="android:textColor">@color/md_dark_secondary</item>
</style>
<style name="WindowAnimationFadeInOut">
<item name="android:windowEnterAnimation">@anim/fade_in</item>
<item name="android:windowExitAnimation">@anim/fade_out</item>
</style>
<style name="alertDialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert" >
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="NoPaddingToolbar" parent="Base.Widget.AppCompat.Toolbar">
<item name="contentInsetStartWithNavigation">0dp</item>
</style>
<style name="AppTheme.AppBarOverlay.Dark" parent="ThemeOverlay.AppCompat.Dark">
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light">
<item name="overlapAnchor">false</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<!--ReadActivity-->
<style name="MAppTheme.TextAppearance.Read" />
<style name="MAppTheme.TextAppearance.Read.TopMenu">
<item name="android:layout_width">50dp</item>
<item name="android:layout_height">match_parent</item>
<item name="android:gravity">center</item>
<item name="android:textColor">@color/read_menu_text</item>
<item name="android:textSize">@dimen/text_normal_size</item>
</style>
<style name="MAppTheme.TextAppearance.Read.BottomMenu">
<item name="android:textColor">@drawable/setting_btn_bg_color</item>
<item name="android:textSize">@dimen/text_small_size</item>
</style>
<style name="AppTheme.TextAppearance.Read.BottomMenu.Button" parent="MAppTheme.TextAppearance.Read.BottomMenu">
<item name="android:gravity">center_horizontal|bottom</item>
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_weight">1</item>
<item name="android:textColor">@drawable/setting_btn_bg_color</item>
<item name="android:textSize">@dimen/text_small_size</item>
</style>
<style name="dialogWindowAnim" parent="android:Animation" mce_bogus="1">
<item name="android:windowEnterAnimation">@anim/slide_bottom_in</item>
<item name="android:windowExitAnimation">@anim/slide_bottom_out</item>
</style>
<declare-styleable name="CodeView">
<attr name="cv_font_size" format="integer"/>
<attr name="cv_zoom_enable" format="boolean"/>
</declare-styleable>
<!-- updateDialog -->
<declare-styleable name="BarPercentView">
<!--进度条高度-->
<attr name="barHeight" format="dimension" />
<!--圆角矩形半径-->
<attr name="barRadius" format="dimension" />
<!--进度条背景色-->
<attr name="barBgColor" format="reference" />
<!--进度条颜色-->
<attr name="barProgressColor" format="reference" />
<!--渐变开始颜色-->
<attr name="barStartColor" format="reference" />
<!--渐变结束颜色-->
<attr name="barEndColor" format="reference" />
<!--是否渐变-->
<attr name="barIsGradient" format="boolean" />
</declare-styleable>
<!-- loadingDialog -->
<style name="LoadingDialog" parent="@android:style/Theme.Holo.Dialog.NoActionBar">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:backgroundDimEnabled">false</item>
</style>
</resources>