AChep/literaryclock

View on GitHub
app/src/main/res/values/styles.xml

Summary

Maintainability
Test Coverage
<resources>

    <style name="AppTheme_Base" parent="Theme.Material3.DayNight.NoActionBar">
        <item name="android:navigationBarColor">@color/colorNavigationBarPreQ</item>
    </style>

    <style name="AppTheme" parent="AppTheme_Base">
        <item name="android:statusBarColor">@android:color/transparent</item>

        <item name="colorPrimaryDark">?colorSecondaryContainer</item>
    </style>

    <style name="Theme.AppWidget.AppWidgetContainerParent" parent="Theme.Material3.DynamicColors.Light">
        <!-- Radius of the outer bound of widgets to make the rounded corners -->
        <item name="appWidgetRadius">16dp</item>
        <!--
        Radius of the inner view's bound of widgets to make the rounded corners.
        It needs to be 8dp or less than the value of appWidgetRadius
        -->
        <item name="appWidgetInnerRadius">8dp</item>
    </style>

    <style name="Theme.AppWidget.AppWidgetContainer" parent="Theme.AppWidget.AppWidgetContainerParent">
        <!-- Apply padding to avoid the content of the widget colliding with the rounded corners -->
        <item name="appWidgetPadding">16dp</item>
    </style>

    <style name="Widget.AppWidget.AppWidget.Container" parent="android:Widget">
        <item name="android:padding">?attr/appWidgetPadding</item>
        <item name="android:background">@drawable/bg_widget</item>
    </style>

    <style name="ToolbarStyle" parent="Widget.Material3.CollapsingToolbar.Large">
        <item name="collapsedTitleGravity">start|center_vertical</item>
        <item name="expandedTitleGravity">start|bottom</item>
    </style>

    <item name="titleCentered" type="bool">false</item>

</resources>