|
16 | 16 | You should have received a copy of the GNU General Public License |
17 | 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 | 18 | --> |
19 | | -<resources xmlns:android="http://schemas.android.com/apk/res/android"> |
| 19 | +<resources xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"> |
20 | 20 |
|
21 | 21 | <style name="Animations" /> |
22 | 22 |
|
|
45 | 45 |
|
46 | 46 | <!-- style for search view --> |
47 | 47 | <item name="searchViewStyle">@style/ownCloud.SearchView</item> |
| 48 | + <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item> |
48 | 49 | </style> |
49 | 50 |
|
50 | 51 | <!-- Splash Screen --> |
51 | 52 | <style name="Theme.ownCloud.Splash"> |
52 | 53 | <item name="android:windowBackground">@drawable/splash_screen</item> |
| 54 | + <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item> |
53 | 55 | </style> |
54 | 56 |
|
55 | 57 | <!-- Extends Theme.ownCloud to remove legacy ActionBar from the window and add, via layouts, a Toolbar --> |
|
58 | 60 | <item name="windowActionBar">false</item> |
59 | 61 | <!-- (status/nav)BarColor are set by the Activity, not the system --> |
60 | 62 | <item name="android:windowDrawsSystemBarBackgrounds">true</item> |
| 63 | + <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item> |
61 | 64 | </style> |
62 | 65 |
|
63 | 66 | <!-- Extends Theme.ownCloud.Toolbar for Drawer activities including Drawer --> |
64 | 67 | <style name="Theme.ownCloud.Toolbar.Drawer"> |
65 | 68 | <item name="android:statusBarColor">@android:color/transparent</item> |
66 | 69 | <item name="android:windowAnimationStyle">@null</item> |
| 70 | + <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item> |
67 | 71 | </style> |
68 | 72 |
|
69 | 73 | <!-- Extends Theme.ownCloud to make LEGACY ActionBar both OVERLAY and TRANSPARENT --> |
70 | 74 | <style name="Theme.ownCloud.Overlay"> |
71 | 75 | <item name="windowActionBarOverlay">true</item> |
72 | 76 | <item name="actionBarTheme">@style/ownCloud.Appbar.Transparent</item> |
| 77 | + <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item> |
73 | 78 | </style> |
74 | 79 |
|
75 | 80 | <!-- Extends Theme.ownCloud for video in full screen mode --> |
|
78 | 83 | <item name="android:windowLayoutInDisplayCutoutMode">never</item> |
79 | 84 | <item name="actionBarTheme">@style/ownCloud.Appbar.Transparent</item> |
80 | 85 | <item name="android:windowBackground">@android:color/background_dark</item> |
| 86 | + <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item> |
81 | 87 | </style> |
82 | 88 |
|
83 | 89 | <!-- DIALOG THEMES: styles for DIALOGs --> |
|
89 | 95 | <item name="searchViewStyle">@style/ownCloud.SearchView</item> |
90 | 96 | <item name="buttonBarButtonStyle">@style/Theme.ownCloud.Dialog.ButtonBar.Button</item> |
91 | 97 | <item name="buttonBarStyle">@style/Theme.ownCloud.Dialog.ButtonBar</item> |
| 98 | + <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item> |
92 | 99 | </style> |
93 | 100 |
|
94 | 101 | <!-- USED IN SHAREACTIVITY!! !! --> |
95 | 102 | <style name="Theme.ownCloud.AlertDialog.NoTitle"> |
96 | 103 | <item name="windowNoTitle">true</item> |
| 104 | + <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item> |
97 | 105 | </style> |
98 | 106 |
|
99 | 107 | <!-- APP BAR styles --> |
|
105 | 113 | <style name="ownCloud.Appbar" parent="ThemeOverlay.AppCompat.Dark.ActionBar"> |
106 | 114 | <item name="colorPrimary">@color/actionbar_start_color</item> |
107 | 115 | <item name="toolbarNavigationButtonStyle">@style/Toolbar.Button.Navigation.Tinted</item> |
| 116 | + <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item> |
108 | 117 | </style> |
109 | 118 |
|
110 | 119 | <style name="Toolbar.Button.Navigation.Tinted" parent="Widget.AppCompat.Toolbar.Button.Navigation"> |
|
114 | 123 | <!-- Transparent style for the app bar --> |
115 | 124 | <style name="ownCloud.Appbar.Transparent" parent="ThemeOverlay.AppCompat.Dark.ActionBar"> |
116 | 125 | <item name="colorPrimary">@color/owncloud_blue_transparent</item> |
| 126 | + <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item> |
117 | 127 | </style> |
118 | 128 |
|
119 | 129 | <!-- MORE styles --> |
|
279 | 289 | <!-- properties for action mode --> |
280 | 290 | <item name="windowActionModeOverlay">true</item> |
281 | 291 | <item name="actionModeBackground">@color/action_mode_background</item> |
| 292 | + <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item> |
282 | 293 | </style> |
283 | 294 |
|
284 | 295 | <style name="Button.Authenticator" parent="Widget.AppCompat.Button.Colored"> |
|
295 | 306 | <style name="Theme.ownCloud.Authenticator.EditText" parent="Theme.ownCloud.Authenticator"> |
296 | 307 | <item name="colorControlNormal">@color/login_text_color</item> |
297 | 308 | <item name="colorControlActivated">@color/login_text_color</item> |
| 309 | + <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item> |
298 | 310 | </style> |
299 | 311 |
|
300 | 312 | <!-- SortBottomSheetFragment --> |
301 | 313 | <style name="Theme.ownCloud.SortBottomSheetFragment" /> |
302 | 314 |
|
303 | 315 | <style name="Theme.ownCloud.SortBottomSheetFragment.Item"> |
304 | 316 | <item name="android:textAppearance">@style/TextAppearance.OwnCloud.SortBottomSheetFragment.Item</item> |
| 317 | + <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item> |
305 | 318 | </style> |
306 | 319 | </resources> |
0 commit comments