tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

style.xml (5679B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      3   - License, v. 2.0. If a copy of the MPL was not distributed with this
      4   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      5 <resources>
      6 
      7    <style name="Mozac.Browser.Menu" parent="">
      8        <item name="cardBackgroundColor">@color/mozac_browser_menu_background</item>
      9    </style>
     10 
     11    <!-- Item Divider -->
     12    <style name="Mozac.Browser.Menu.Item.Divider" parent="">
     13        <item name="android:background">?android:attr/listDivider</item>
     14    </style>
     15 
     16    <style name="Mozac.Browser.Menu.Item.Divider.Horizontal">
     17        <item name="android:layout_width">match_parent</item>
     18        <item name="android:layout_height">@dimen/mozac_browser_menu_item_divider_height</item>
     19    </style>
     20    <!-- Item Divider -->
     21 
     22    <style name="Mozac.Browser.Menu.Item.Container" parent="">
     23        <item name="android:layout_height">@dimen/mozac_browser_menu_item_container_layout_height</item>
     24        <item name="android:paddingStart">@dimen/mozac_browser_menu_item_container_padding_start</item>
     25        <item name="android:paddingEnd">@dimen/mozac_browser_menu_item_container_padding_end</item>
     26        <item name="android:background">?android:attr/selectableItemBackground</item>
     27    </style>
     28 
     29    <style name="Mozac.Browser.Menu.Item.CandidateContainer" parent="Mozac.Browser.Menu.Item.Container">
     30        <item name="android:paddingStart">16dp</item>
     31        <item name="android:paddingEnd">16dp</item>
     32    </style>
     33 
     34    <style name="Mozac.Browser.Menu.Item.Text" parent="@android:style/TextAppearance.Material.Menu">
     35        <item name="android:background">?android:attr/selectableItemBackground</item>
     36        <item name="android:textSize">@dimen/mozac_browser_menu_item_text_size</item>
     37        <item name="android:ellipsize">end</item>
     38        <item name="android:lines">1</item>
     39        <item name="android:focusable">true</item>
     40        <item name="android:clickable">true</item>
     41    </style>
     42 
     43    <!-- BrowserMenuCategory -->
     44    <style name="Mozac.Browser.Menu.Item.Category" parent="">
     45        <item name="android:layout_height">@dimen/mozac_browser_menu_category_layout_height</item>
     46        <item name="android:textSize">@dimen/mozac_browser_menu_category_text_size</item>
     47        <item name="android:paddingStart">@dimen/mozac_browser_menu_category_padding_start</item>
     48        <item name="android:paddingEnd">@dimen/mozac_browser_menu_category_padding_end</item>
     49        <item name="android:background">?android:attr/selectableItemBackground</item>
     50    </style>
     51    <!-- BrowserMenuCategory -->
     52 
     53    <!-- BrowserMenuImageText -->
     54    <style name="Mozac.Browser.Menu.Item.ImageText.Icon" parent="">
     55        <item name="android:layout_width">@dimen/mozac_browser_menu_item_image_text_icon_width</item>
     56        <item name="android:layout_height">@dimen/mozac_browser_menu_item_image_text_icon_height</item>
     57    </style>
     58 
     59    <style name="Mozac.Browser.Menu.Item.CandidateIcon" parent="Mozac.Browser.Menu.Item.ImageText.Icon">
     60        <item name="android:layout_width">24dp</item>
     61        <item name="android:layout_height">24dp</item>
     62    </style>
     63 
     64    <style name="Mozac.Browser.Menu.Item.ImageText.Label" parent="Mozac.Browser.Menu.Item.Text">
     65        <item name="android:layout_width">wrap_content</item>
     66        <item name="android:layout_height">wrap_content</item>
     67        <item name="android:paddingStart">@dimen/mozac_browser_menu_item_image_text_label_padding_start</item>
     68        <item name="android:paddingEnd">@dimen/mozac_browser_menu_item_image_text_label_padding_start</item>
     69    </style>
     70 
     71    <style name="Mozac.Browser.Menu.Item.Checkbox.Label" parent="Mozac.Browser.Menu.Item.ImageText.Label">
     72        <item name="android:paddingStart">@dimen/mozac_browser_menu_item_checkbox_text_label_padding_start</item>
     73        <item name="android:paddingEnd">@dimen/mozac_browser_menu_item_checkbox_text_label_padding_end</item>
     74    </style>
     75 
     76    <style name="Mozac.Browser.Menu.Item.Checkbox.Text" parent="Mozac.Browser.Menu.Item.Text">
     77        <item name="android:layout_width">0dp</item>
     78        <item name="android:layout_height">0dp</item>
     79        <item name="android:paddingStart">@dimen/mozac_browser_menu_item_image_checkbox_padding_start</item>
     80        <item name="android:paddingEnd">@dimen/mozac_browser_menu_item_image_checkbox_padding_end</item>
     81    </style>
     82 
     83    <style name="Mozac.Browser.Menu.Item.Checkbox.Container" parent="Mozac.Browser.Menu.Item.Container">
     84        <item name="android:layout_height">@dimen/mozac_browser_menu_item_checkbox_container_layout_height</item>
     85        <item name="android:paddingStart">@dimen/mozac_browser_menu_item_checkbox_container_padding_start</item>
     86        <item name="android:paddingEnd">@dimen/mozac_browser_menu_item_checkbox_container_padding_end</item>
     87    </style>
     88 
     89    <style name="Mozac.Browser.Menu.Item.CandidateLabel" parent="Mozac.Browser.Menu.Item.Text">
     90        <item name="android:layout_width">wrap_content</item>
     91        <item name="android:layout_height">wrap_content</item>
     92    </style>
     93    <!-- BrowserMenuImageText -->
     94 
     95    <!-- Animation -->
     96    <style name="Mozac.Browser.Menu.Animation.OverflowMenuTop" parent="">
     97        <item name="android:windowEnterAnimation">@anim/menu_enter_top</item>
     98        <item name="android:windowExitAnimation">@anim/menu_exit</item>
     99    </style>
    100 
    101    <style name="Mozac.Browser.Menu.Animation.OverflowMenuBottom" parent="">
    102        <item name="android:windowEnterAnimation">@anim/menu_enter_bottom</item>
    103        <item name="android:windowExitAnimation">@anim/menu_exit</item>
    104    </style>
    105    <!-- Animation -->
    106 </resources>