235 lines
12 KiB
XML
235 lines
12 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
/*
|
|
* Copyright (C) 2008 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
-->
|
|
|
|
<resources>
|
|
<!-- Launcher theme -->
|
|
<style name="BaseLauncherTheme" parent="@android:style/Theme.DeviceDefault.Light">
|
|
<item name="android:colorBackgroundCacheHint">@null</item>
|
|
<item name="android:colorEdgeEffect">#FF757575</item>
|
|
<item name="android:windowActionBar">false</item>
|
|
<item name="android:windowBackground">@android:color/transparent</item>
|
|
<item name="android:windowNoTitle">true</item>
|
|
<item name="android:windowShowWallpaper">true</item>
|
|
<item name="folderTextColor">?attr/workspaceTextColor</item>
|
|
</style>
|
|
|
|
<style name="LauncherTheme" parent="@style/BaseLauncherTheme">
|
|
<item name="allAppsScrimColor">#EAFFFFFF</item>
|
|
<item name="allAppsInterimScrimAlpha">46</item>
|
|
<item name="allAppsNavBarScrimColor">#66FFFFFF</item>
|
|
<item name="popupColorPrimary">#FFF</item>
|
|
<item name="popupColorSecondary">#F5F5F5</item> <!-- Gray 100 -->
|
|
<item name="popupColorTertiary">#E0E0E0</item> <!-- Gray 300 -->
|
|
<item name="isMainColorDark">false</item>
|
|
<item name="isWorkspaceDarkText">false</item>
|
|
<item name="workspaceTextColor">@android:color/white</item>
|
|
<item name="workspaceShadowColor">#B0000000</item>
|
|
<item name="workspaceAmbientShadowColor">#33000000</item>
|
|
<item name="workspaceKeyShadowColor">#44000000</item>
|
|
<item name="workspaceStatusBarScrim">@drawable/workspace_bg</item>
|
|
<item name="widgetsTheme">@style/WidgetContainerTheme</item>
|
|
<item name="folderDotColor">?android:attr/colorPrimary</item>
|
|
<item name="folderFillColor">#CDFFFFFF</item>
|
|
<item name="folderIconBorderColor">?android:attr/colorPrimary</item>
|
|
<item name="folderTextColor">#FF212121</item>
|
|
<item name="loadingIconColor">#CCFFFFFF</item>
|
|
|
|
<item name="android:windowTranslucentStatus">false</item>
|
|
<item name="android:windowTranslucentNavigation">false</item>
|
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
|
<item name="android:statusBarColor">#00000000</item>
|
|
<item name="android:navigationBarColor">#00000000</item>
|
|
</style>
|
|
|
|
<style name="LauncherTheme.DarkMainColor" parent="@style/LauncherTheme">
|
|
<item name="folderFillColor">#FF3C4043</item> <!-- 100% GM2 800 -->
|
|
<item name="folderTextColor">?attr/workspaceTextColor</item>
|
|
</style>
|
|
|
|
<style name="LauncherTheme.DarkText" parent="@style/LauncherTheme">
|
|
<item name="workspaceTextColor">#FF212121</item>
|
|
<item name="allAppsInterimScrimAlpha">128</item>
|
|
<item name="workspaceShadowColor">@android:color/transparent</item>
|
|
<item name="workspaceAmbientShadowColor">@android:color/transparent</item>
|
|
<item name="workspaceKeyShadowColor">@android:color/transparent</item>
|
|
<item name="isWorkspaceDarkText">true</item>
|
|
<item name="workspaceStatusBarScrim">@null</item>
|
|
<item name="folderDotColor">#FF464646</item>
|
|
<item name="folderFillColor">#CDFFFFFF</item>
|
|
<item name="folderIconBorderColor">#FF80868B</item>
|
|
<item name="folderTextColor">?attr/workspaceTextColor</item>
|
|
</style>
|
|
|
|
<style name="LauncherTheme.Dark" parent="@style/LauncherTheme">
|
|
<item name="android:textColorPrimary">#FFFFFFFF</item>
|
|
<item name="android:textColorSecondary">#FFFFFFFF</item>
|
|
<item name="android:textColorTertiary">#CCFFFFFF</item>
|
|
<item name="android:textColorHint">#A0FFFFFF</item>
|
|
<item name="android:colorControlHighlight">#A0FFFFFF</item>
|
|
<item name="android:colorPrimary">#FF212121</item>
|
|
<item name="allAppsScrimColor">#EA212121</item>
|
|
<item name="allAppsInterimScrimAlpha">102</item>
|
|
<item name="allAppsNavBarScrimColor">#80000000</item>
|
|
<item name="popupColorPrimary">#3C4043</item> <!-- Gray 800 -->
|
|
<item name="popupColorSecondary">#5F6368</item> <!-- Gray 700 -->
|
|
<item name="popupColorTertiary">#757575</item> <!-- Gray 600 -->
|
|
<item name="widgetsTheme">@style/WidgetContainerTheme.Dark</item>
|
|
<item name="folderDotColor">#FF464646</item>
|
|
<item name="folderFillColor">#DD3C4043</item> <!-- 87% GM2 800 -->
|
|
<item name="folderIconBorderColor">#FF80868B</item>
|
|
<item name="folderTextColor">@android:color/white</item>
|
|
<item name="isMainColorDark">true</item>
|
|
<item name="loadingIconColor">#99FFFFFF</item>
|
|
</style>
|
|
|
|
<style name="LauncherTheme.Dark.DarkMainColor" parent="@style/LauncherTheme.Dark">
|
|
<item name="folderFillColor">#FF3C4043</item> <!-- 100% GM2 800 -->
|
|
<item name="folderTextColor">@android:color/white</item>
|
|
</style>
|
|
|
|
<style name="LauncherTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark">
|
|
<item name="android:colorControlHighlight">#75212121</item>
|
|
<item name="allAppsInterimScrimAlpha">25</item>
|
|
<item name="folderFillColor">#CDFFFFFF</item>
|
|
<item name="folderTextColor">?attr/workspaceTextColor</item>
|
|
<item name="workspaceTextColor">#FF212121</item>
|
|
<item name="workspaceShadowColor">@android:color/transparent</item>
|
|
<item name="workspaceAmbientShadowColor">@android:color/transparent</item>
|
|
<item name="workspaceKeyShadowColor">@android:color/transparent</item>
|
|
<item name="isWorkspaceDarkText">true</item>
|
|
<item name="workspaceStatusBarScrim">@null</item>
|
|
</style>
|
|
|
|
<!-- A derivative project can extend these themes to customize the application theme without
|
|
affecting the base theme -->
|
|
<style name="AppTheme" parent="@style/LauncherTheme" />
|
|
<style name="AppTheme.DarkMainColor" parent="@style/LauncherTheme.DarkMainColor" />
|
|
<style name="AppTheme.DarkText" parent="@style/LauncherTheme.DarkText" />
|
|
|
|
<style name="AppTheme.Dark" parent="@style/LauncherTheme.Dark" />
|
|
<style name="AppTheme.Dark.DarkMainColor" parent="@style/LauncherTheme.Dark.DarkMainColor" />
|
|
<style name="AppTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark.DarkText" />
|
|
|
|
<style name="AppItemActivityTheme" parent="@android:style/Theme.Material.Light.Dialog.Alert">
|
|
<item name="widgetsTheme">@style/WidgetContainerTheme</item>
|
|
</style>
|
|
|
|
<style name="HomeSettingsTheme" parent="@android:style/Theme.DeviceDefault.Settings">
|
|
<item name="android:navigationBarColor">@android:color/transparent</item>
|
|
</style>
|
|
|
|
<!--
|
|
Theme overrides to element on homescreen, i.e., which are drawn on top on wallpaper.
|
|
Various foreground colors are overridden to be workspaceTextColor so that they are properly
|
|
visible on various wallpapers.
|
|
-->
|
|
<style name="HomeScreenElementTheme">
|
|
<item name="android:colorEdgeEffect">?attr/workspaceTextColor</item>
|
|
<item name="android:textColorPrimary">?attr/workspaceTextColor</item>
|
|
<item name="android:textColorSecondary">?attr/workspaceTextColor</item>
|
|
</style>
|
|
|
|
<!-- Theme for the widget container. Overridden on API 26. -->
|
|
<style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
|
|
<item name="android:colorEdgeEffect">?android:attr/textColorSecondaryInverse</item>
|
|
<item name="android:textColorPrimary">?android:attr/textColorPrimaryInverse</item>
|
|
<item name="android:textColorSecondary">?android:attr/textColorSecondaryInverse</item>
|
|
</style>
|
|
|
|
<style name="WidgetContainerTheme.Dark" />
|
|
|
|
<style name="FastScrollerPopup" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle">
|
|
<item name="android:layout_width">wrap_content</item>
|
|
<item name="android:minWidth">@dimen/fastscroll_popup_width</item>
|
|
<item name="android:layout_height">@dimen/fastscroll_popup_height</item>
|
|
<item name="android:textSize">@dimen/fastscroll_popup_text_size</item>
|
|
<item name="android:paddingEnd">@dimen/fastscroll_popup_padding</item>
|
|
<item name="android:gravity">center</item>
|
|
<item name="android:alpha">0</item>
|
|
<item name="android:elevation">3dp</item>
|
|
<item name="android:saveEnabled">false</item>
|
|
<item name="android:textColor">@android:color/white</item>
|
|
<item name="android:includeFontPadding">false</item>
|
|
<item name="android:importantForAccessibility">no</item>
|
|
</style>
|
|
|
|
<!-- Base theme for BubbleTextView and sub classes -->
|
|
<style name="BaseIcon" parent="@android:style/TextAppearance.DeviceDefault">
|
|
<item name="android:layout_width">match_parent</item>
|
|
<item name="android:layout_height">match_parent</item>
|
|
<item name="android:layout_gravity">center</item>
|
|
<item name="android:focusable">true</item>
|
|
<item name="android:gravity">center_horizontal</item>
|
|
<item name="android:lines">1</item>
|
|
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
|
<item name="android:defaultFocusHighlightEnabled">false</item>
|
|
|
|
<!-- No shadows in the base theme -->
|
|
<item name="android:shadowRadius">0</item>
|
|
</style>
|
|
|
|
<!-- Icon displayed on the workspace -->
|
|
<style name="BaseIcon.Workspace" >
|
|
<item name="android:shadowRadius">2.0</item>
|
|
<item name="android:shadowColor">?attr/workspaceShadowColor</item>
|
|
<item name="ambientShadowColor">?attr/workspaceAmbientShadowColor</item>
|
|
<item name="ambientShadowBlur">2.5dp</item>
|
|
<item name="keyShadowColor">?attr/workspaceKeyShadowColor</item>
|
|
<item name="keyShadowBlur">1dp</item>
|
|
<item name="keyShadowOffset">.5dp</item>
|
|
</style>
|
|
|
|
<!-- Theme for the popup container -->
|
|
<style name="PopupItem">
|
|
<item name="android:colorControlHighlight">?attr/popupColorTertiary</item>
|
|
</style>
|
|
|
|
<!-- Drop targets -->
|
|
<style name="DropTargetButtonBase" parent="@android:style/TextAppearance.DeviceDefault">
|
|
<item name="android:drawablePadding">7.5dp</item>
|
|
<item name="android:paddingLeft">16dp</item>
|
|
<item name="android:paddingRight">16dp</item>
|
|
<item name="android:textColor">?attr/workspaceTextColor</item>
|
|
<item name="android:textSize">@dimen/drop_target_text_size</item>
|
|
<item name="android:singleLine">true</item>
|
|
<item name="android:ellipsize">end</item>
|
|
<item name="android:shadowColor">?attr/workspaceShadowColor</item>
|
|
<item name="android:shadowDx">0.0</item>
|
|
<item name="android:shadowDy">1.0</item>
|
|
<item name="android:shadowRadius">4.0</item>
|
|
</style>
|
|
|
|
<style name="DropTargetButton" parent="DropTargetButtonBase" />
|
|
|
|
<style name="TextHeadline" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle" />
|
|
|
|
<style name="TextTitle" parent="@android:style/TextAppearance.DeviceDefault" />
|
|
|
|
<style name="AllAppsEmptySearchBackground">
|
|
<item name="android:colorPrimary">#E0E0E0</item>
|
|
<item name="android:colorControlHighlight">#BDBDBD</item>
|
|
<item name="android:colorForeground">@color/all_apps_bg_hand_fill</item>
|
|
</style>
|
|
<style name="AllAppsEmptySearchBackground.Dark">
|
|
<item name="android:colorPrimary">#9AA0A6</item>
|
|
<item name="android:colorControlHighlight">#DFE1E5</item>
|
|
<item name="android:colorForeground">@color/all_apps_bg_hand_fill_dark</item>
|
|
</style>
|
|
</resources>
|