widget outline

This commit is contained in:
Finnley Somdahl 2023-12-09 14:09:24 -06:00
parent 82bc215da5
commit b6be7075b0
23 changed files with 681 additions and 21 deletions

View file

@ -0,0 +1,7 @@
<resources>
<declare-styleable name="AppWidgetAttrs">
<attr name="appWidgetPadding" format="dimension" />
<attr name="appWidgetInnerRadius" format="dimension" />
<attr name="appWidgetRadius" format="dimension" />
</declare-styleable>
</resources>

View file

@ -274,14 +274,19 @@
<color name="md_theme_dark_4_outlineVariant">#504349</color>
<color name="md_theme_dark_4_scrim">#000000</color>
<color name="seed_7">#FF007F</color> <!-- if there are any issues with Saikou theme message @Wai What to get it fixed, unallocated colors are also set to "#00FF00" as they are not yet being used-->
<color name="seed_7">#FF007F
</color> <!-- if there are any issues with Saikou theme message @Wai What to get it fixed, unallocated colors are also set to "#00FF00" as they are not yet being used-->
<color name="md_theme_light_5_primary">#FF007F</color>
<color name="md_theme_light_5_onPrimary">#EEEEEE</color> <!-- good but shared with anime and manga list headers -->
<color name="md_theme_light_5_primaryContainer">#000000</color> <!-- good-ish, it's shared with slider colors so I've had to set it to "#000000" instead of "#78757C" -->
<color name="md_theme_light_5_onPrimaryContainer">#FF007F</color> <!-- good (login button text, "#EEEEEE" also works) -->
<color name="md_theme_light_5_onPrimary">#EEEEEE
</color> <!-- good but shared with anime and manga list headers -->
<color name="md_theme_light_5_primaryContainer">#000000
</color> <!-- good-ish, it's shared with slider colors so I've had to set it to "#000000" instead of "#78757C" -->
<color name="md_theme_light_5_onPrimaryContainer">#FF007F
</color> <!-- good (login button text, "#EEEEEE" also works) -->
<color name="md_theme_light_5_secondary">#91A6FF</color>
<color name="md_theme_light_5_onSecondary">#EEEEEE</color>
<color name="md_theme_light_5_secondaryContainer">#91A6FF</color> <!-- good but shared with youtube play -->
<color name="md_theme_light_5_secondaryContainer">#91A6FF
</color> <!-- good but shared with youtube play -->
<color name="md_theme_light_5_onSecondaryContainer">#EEEEEE</color>
<color name="md_theme_light_5_tertiary">#91A6FF</color>
<color name="md_theme_light_5_onTertiary">#00FF00</color>
@ -306,12 +311,16 @@
<color name="md_theme_light_5_outlineVariant">#00FF00</color>
<color name="md_theme_light_5_scrim">#00FF00</color>
<color name="md_theme_dark_5_primary">#FF5DAE</color>
<color name="md_theme_dark_5_onPrimary">#EEEEEE</color> <!-- good but shared with anime and manga list headers -->
<color name="md_theme_dark_5_primaryContainer">#EEEEEE</color> <!-- good-ish, it's shared with slider colors so I've had to set it to "#EEEEEE" instead of "#928F98" -->
<color name="md_theme_dark_5_onPrimaryContainer">#FF5DAE</color> <!-- good (login button text, "#000000" also works) -->
<color name="md_theme_dark_5_onPrimary">#EEEEEE
</color> <!-- good but shared with anime and manga list headers -->
<color name="md_theme_dark_5_primaryContainer">#EEEEEE
</color> <!-- good-ish, it's shared with slider colors so I've had to set it to "#EEEEEE" instead of "#928F98" -->
<color name="md_theme_dark_5_onPrimaryContainer">#FF5DAE
</color> <!-- good (login button text, "#000000" also works) -->
<color name="md_theme_dark_5_secondary">#91A6FF</color>
<color name="md_theme_dark_5_onSecondary">#EEEEEE</color>
<color name="md_theme_dark_5_secondaryContainer">#91A6FF</color> <!-- good but shared with youtube play -->
<color name="md_theme_dark_5_secondaryContainer">#91A6FF
</color> <!-- good but shared with youtube play -->
<color name="md_theme_dark_5_onSecondaryContainer">#EEEEEE</color>
<color name="md_theme_dark_5_tertiary">#91A6FF</color>
<color name="md_theme_dark_5_onTertiary">#00FF00</color>
@ -463,4 +472,8 @@
<color name="CustomColor2">#68AF86</color>
<color name="CustomColor3">#0096AE</color>
<color name="CustomColor4">#000000</color>
<color name="light_blue_50">#FFE1F5FE</color>
<color name="light_blue_200">#FF81D4FA</color>
<color name="light_blue_600">#FF039BE5</color>
<color name="light_blue_900">#FF01579B</color>
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
Refer to App Widget Documentation for margin information
http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout
-->
<dimen name="widget_margin">0dp</dimen>
</resources>

View file

@ -1,5 +1,4 @@
<resources xmlns:tools="http://schemas.android.com/tools"
tools:locale="en-rUS">
<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="en-rUS">
<string name="repo">rebelonion/Dantotsu</string>
<string name="preference_file_key" translatable="false">dantotsuprefs</string>
@ -506,9 +505,9 @@
<string name="yes">Yes</string>
<string name="no">No</string>
<string name="close">Close</string>
<string name= "no_chapter">No Chapter</string>
<string name= "content_18">Turn on 18+ Content from your Anilist Settings</string>
<string name= "available">Available</string>
<string name="no_chapter">No Chapter</string>
<string name="content_18">Turn on 18+ Content from your Anilist Settings</string>
<string name="available">Available</string>
<string name="lets_go">Let\'s Go</string>
<string name="cope">Cope</string>
@ -598,7 +597,7 @@
<string name="question_17">Some useful tips and tricks</string>
<string name="answer_17">The following presents some tips and tricks you may or may not know about - \n \n \n - By hold pressing the Dantotsu logo in settings, you can check if there are any new updates manually. \n \n - Hold pressing an error message/tag/synonym or title will copy it. \n \n - You can open an episode with other apps by hold pressing any server for that episode. This helps in streaming the episode using other video players or download the episode using download managers. \n \n - You can set up custom lists using this [link](https://anilist.co/settings/lists). (you need to be signed in) \n \n - If your episode/chapter is not being progressed automatically after you finish watching/reading it, then hold press the status bar(planning/repeating/watching button) of that anime/manga. The next time you start a chapter/finish an episode, you will stumble upon a popup. Press yes there. </string>
<string name="subscribed_notification">Subscribed! Receiving notifications, when new episodes are released on %1$s.</string>
@ -643,5 +642,10 @@
<string name="color_picker">Color Picker</string>
<string name="random_selection">Random Selection</string>
<string name="incognito_mode">Incognito Mode</string>
<string name="appwidget_text">EXAMPLE</string>
<string name="configure">Configure</string>
<string name="add_widget">Add widget</string>
<string name="app_widget_description">This is an app widget description</string>
<string name="airing_image">Airing Image</string>
</resources>

View file

@ -0,0 +1,12 @@
<resources>
<style name="Widget.Dantotsu.AppWidget.Container" parent="android:Widget">
<item name="android:id">@android:id/background</item>
<item name="android:background">?android:attr/colorBackground</item>
</style>
<style name="Widget.Dantotsu.AppWidget.InnerView" parent="android:Widget">
<item name="android:background">?android:attr/colorBackground</item>
<item name="android:textColor">?android:attr/textColorPrimary</item>
</style>
</resources>

View file

@ -1,4 +1,5 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="Theme.Base" parent="Theme.Material3.DayNight">
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">?android:colorBackground</item>
@ -12,16 +13,21 @@
<item name="android:ambientShadowAlpha">0.08</item>
<item name="android:spotShadowAlpha">0.08</item>
<item name="snackbarStyle">@style/MySnackbar</item>
<item name="snackbarButtonStyle">@style/Widget.MaterialComponents.Button.TextButton.Snackbar</item>
<item name="snackbarButtonStyle">
@style/Widget.MaterialComponents.Button.TextButton.Snackbar
</item>
<item name="snackbarTextViewStyle">@string/MySnackBarText</item>
<item name="popupMenuStyle">@style/MyPopup</item>
<item name="android:windowSplashScreenAnimationDuration" tools:targetApi="s">1000</item>
<item name="android:windowSplashScreenAnimatedIcon" tools:targetApi="s">@drawable/anim_splash</item>
<item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="o_mr1">shortEdges</item>
<item name="android:windowSplashScreenAnimatedIcon" tools:targetApi="s">
@drawable/anim_splash
</item>
<item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="o_mr1">shortEdges
</item>
</style>
<style name="Theme.Dantotsu" parent="Theme.Base">
<item name="android:windowLightStatusBar" >true</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="Theme.Dantotsu.NoActionBar">
@ -30,6 +36,7 @@
</style>
<style name="Theme.Dantotsu.AppBarOverlay" parent="Theme.Dantotsu" />
<style name="Theme.Dantotsu.PopupOverlay" parent="Theme.Dantotsu" />
<style name="Theme.Dantotsu.NeverCutout" parent="@style/Theme.Dantotsu.NoActionBar">
@ -307,4 +314,19 @@
<item name="colorPrimaryInverse">@color/md_theme_light_5_inversePrimary</item>
</style>
<style name="Theme.Dantotsu.AppWidgetContainerParent" parent="@android:style/Theme.DeviceDefault">
<!-- 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.Dantotsu.AppWidgetContainer" parent="Theme.Dantotsu.AppWidgetContainerParent">
<!-- Apply padding to avoid the content of the widget colliding with the rounded corners -->
<item name="appWidgetPadding">16dp</item>
</style>
</resources>