blob: c015a64d4cc107812451cc7eec82b2e67482f39b [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2022-2023 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.Aperture" parent="Theme.Material3.DayNight.NoActionBar">
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowLightStatusBar">?attr/isLightTheme</item>
<item name="dialogCornerRadius">28dp</item>
</style>
<!-- Main activity theme. -->
<style name="Theme.Aperture.Camera" parent="Theme.Material3.Dark.NoActionBar">
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowBackground">@android:color/black</item>
<item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="O_MR1">
shortEdges
</item>
<item name="android:windowLightStatusBar">?attr/isLightTheme</item>
</style>
<!-- Settings activity theme. -->
<style name="Theme.Aperture.Settings">
<item name="android:switchStyle">@style/Theme.Aperture.Settings.Switch</item>
<item name="alertDialogTheme">@style/Theme.Aperture.Settings.AlertDialog</item>
<item name="materialAlertDialogTheme">@style/Theme.Aperture.Settings.AlertDialog</item>
<item name="preferenceTheme">@style/Theme.Aperture.Settings.Preference</item>
</style>
<!-- Settings alert dialog theme. -->
<style name="Theme.Aperture.Settings.AlertDialog" parent="ThemeOverlay.Material3.MaterialAlertDialog">
<item name="alertDialogStyle">@style/Theme.Aperture.Settings.AlertDialogStyle</item>
<item name="dialogCornerRadius">28dp</item>
<item name="android:background">@drawable/dialog_preference_background</item>
</style>
<!-- Settings alert dialog style. -->
<style name="Theme.Aperture.Settings.AlertDialogStyle" parent="MaterialAlertDialog.Material3">
<item name="shapeAppearance">@style/ShapeAppearance.Material3.MediumComponent</item>
<item name="shapeAppearanceOverlay">@null</item>
</style>
<!-- Settings message box -->
<style name="Theme.Aperture.Settings.MessageBox">
<item name="selectable">false</item>
</style>
<!-- Settings preference style. -->
<style name="Theme.Aperture.Settings.Preference" parent="PreferenceThemeOverlay">
<item name="android:tint">?attr/colorOnSurface</item>
</style>
<!-- Settings switch theme. -->
<style name="Theme.Aperture.Settings.Switch" parent="@android:style/Widget.Material.CompoundButton.Switch">
<item name="android:switchMinWidth">52dp</item>
<item name="android:minHeight">48dp</item>
<item name="android:track">@drawable/settingslib_switch_track</item>
<item name="android:thumb">@drawable/settingslib_switch_thumb</item>
</style>
<!-- Secondary bar icons base theme -->
<style name="Theme.Aperture.Camera.SecondaryBarButton">
<item name="tint">@color/secondary_bar_button_icon</item>
<item name="backgroundTint">?attr/colorOnPrimary</item>
<item name="drawableTint">@color/secondary_bar_button_icon</item>
<item name="android:background">?attr/selectableItemBackgroundBorderless</item>
<item name="android:textColor">@color/secondary_bar_button_icon</item>
<item name="android:textSize">12sp</item>
</style>
<!-- Secondary top bar icons theme -->
<style name="Theme.Aperture.Camera.SecondaryTopBarButton" parent="Theme.Aperture.Camera.SecondaryBarButton">
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">wrap_content</item>
<item name="layout_constraintDimensionRatio">1:1</item>
<item name="layout_constraintHorizontal_bias">0.5</item>
<item name="layout_constraintVertical_bias">0.0</item>
<item name="android:paddingHorizontal">0dp</item>
<item name="android:textStyle">bold</item>
<item name="android:typeface">monospace</item>
</style>
<!-- Secondary bottom bar icons theme -->
<style name="Theme.Aperture.Camera.SecondaryBottomBarButton" parent="Theme.Aperture.Camera.SecondaryBarButton">
<item name="android:layout_width">40dp</item>
<item name="android:layout_height">40dp</item>
</style>
<!-- Collapsing toolbar style -->
<style name="Theme.Aperture.Camera.ToolbarCollapsed" parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title">
<item name="android:fontFamily">sans-serif</item>
<item name="android:textSize">20sp</item>
</style>
<style name="Theme.Aperture.Camera.ToolbarExpanded" parent="Theme.Aperture.Camera.ToolbarCollapsed">
<item name="android:textSize">36sp</item>
<item name="android:drawablePadding">10dp</item>
</style>
<!-- Info chip -->
<style name="Theme.Aperture.Camera.InfoChip" />
<style name="Theme.Aperture.Camera.InfoChip.ImageView">
<item name="android:layout_width">16dp</item>
<item name="android:layout_height">16dp</item>
<item name="android:visibility">gone</item>
</style>
</resources>