Recently Written · git

ink-dim

Ink Dim: tap to set the frontlight of a Viwoods AiPaper reader below the lowest system level. Tap again to go back.

git clone https://github.com/equwal/ink-dim

Log | Files | Refs


app/src/main/res/values/styles.xml (1487 bytes)

1 <?xml version="1.0" encoding="utf-8"?>
2 <resources>
3     <!--
4         E-ink: light, high contrast, no animation anywhere. No action bar:
5         each screen draws its own title. From Android 15 an app that targets
6         SDK 35 or later is laid out edge to edge, so each screen pads itself
7         for the system bars.
8     -->
9     <style name="Theme.App" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar">
10         <item name="android:windowAnimationStyle">@null</item>
11         <item name="android:windowLightStatusBar">true</item>
12         <item name="android:windowLightNavigationBar">true</item>
13         <item name="android:statusBarColor">@android:color/white</item>
14         <item name="android:navigationBarColor">@android:color/white</item>
15     </style>
16 
17     <!--
18         The toggle activity. It shows nothing and it goes away by itself.
19         Theme.NoDisplay is not used, because the toggle waits for the shell and
20         finishes later than onResume.
21     -->
22     <style name="Theme.Invisible" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar">
23         <item name="android:windowAnimationStyle">@null</item>
24         <item name="android:windowBackground">@android:color/transparent</item>
25         <item name="android:windowIsTranslucent">true</item>
26         <item name="android:windowContentOverlay">@null</item>
27         <item name="android:backgroundDimEnabled">false</item>
28         <item name="android:windowNoTitle">true</item>
29     </style>
30 </resources>