main

square/leakcanary

Last updated at: 29/12/2023 09:39

leak_canary_themes.xml

TLDR

The leak_canary_themes.xml file defines two styles in the LeakCanary library for Android. The leak_canary_LeakCanary.Base style is used as the base theme for the LeakCanary UI, while the leak_canary_Widget.ActionBar style customizes the appearance of the action bar.

<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2015 Square, Inc.
  ~
  ~ 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>
  <style name="leak_canary_LeakCanary.Base" parent="android:Theme.Material">
    <item name="android:windowBackground">@color/leak_canary_background_color</item>
    <item name="android:actionBarStyle">@style/leak_canary_Widget.ActionBar</item>
  </style>

  <style name="leak_canary_Widget.ActionBar" parent="android:Widget.Material.ActionBar">
    <item name="android:background">@color/leak_canary_background_color</item>
    <item name="android:elevation">0dp</item>
  </style>

</resources>