summaryrefslogtreecommitdiffstats
path: root/mobile/android/fenix/app/src/main/res/values/attrs.xml
blob: edd57c6d88fb856dc05c273b702b515e263402ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<resources>
    <!-- Design system color attributes -->

    <!-- Layers -->
    <!-- Default Screen background, Frontlayer background, App Bar Top, App Bar Bottom, Frontlayer header -->
    <attr name="layer1" format="reference" />
    <!-- Card background, Menu background, Dialog, Banner -->
    <attr name="layer2" format="reference" />
    <!-- Search -->
    <attr name="layer3" format="reference" />
    <attr name="layerSearch" format="reference" />
    <!-- Selected tab -->
    <attr name="layerNonOpaque" format="reference" />
    <attr name="scrim" format="reference" />

    <!-- Action -->
    <!-- Primary button, Snackbar, Floating action button, Chip selected -->
    <attr name="actionPrimary" format="reference" />

    <!-- Text -->
    <!-- Primary text -->
    <attr name="textPrimary" format="reference" />
    <!-- Secondary text -->
    <attr name="textSecondary" format="reference" />
    <!-- Disabled text -->
    <attr name="textDisabled" format="reference" />
    <!-- Warning text -->
    <attr name="textWarning" format="reference"/>
    <!-- Small heading, Text link -->
    <attr name="textAccent" format="reference" />
    <!-- Text Inverted/On Color -->
    <attr name="textOnColorPrimary" format="reference" />
    <!-- Action Primary text -->
    <attr name="textActionPrimary" format="reference" />

    <!-- Icon -->
    <!-- Secondary icon -->
    <attr name="iconSecondary" format="reference" />
    <!-- Active tab -->
    <attr name="iconActive" format="reference" />
    <!-- Icon inverted (on color) -->
    <attr name="iconOnColor" format="reference" />

    <!-- Border -->
    <!-- Default, Divider, Dotted -->
    <attr name="borderPrimary" format="reference" />
    <attr name="borderSecondary" format="reference" />
    <!-- Toolbar divider -->
    <attr name="borderToolbarDivider" format="reference"/>

    <!-- Color palette attributes -->
    <attr name="accent" format="reference" />
    <attr name="accentBright" format="reference" />
    <attr name="accentHighContrast" format="reference" />
    <attr name="accentUsedOnDarkBackground" format="reference" />
    <attr name="neutral" format="reference" />
    <attr name="neutralFaded" format="reference" />
    <attr name="preferenceSectionHeader" format="reference"/>

    <!-- Color used in DefaultToolbarMenu for buttons placed at the end of menu items -->
    <attr name="menuItemButtonTintColor" format="reference"/>

    <!-- Misc -->
    <attr name="homeBackground" format="reference"/>
    <attr name="bottomBarBackground" format="reference"/>
    <attr name="bottomBarBackgroundTop" format="reference"/>
    <attr name="fenixLogo" format="reference" />
    <attr name="fenixWordmarkText" format="reference" />
    <attr name="fenixWordmarkLogo" format="reference" />
    <attr name="toolbarStartGradient" format="reference"/>
    <attr name="toolbarCenterGradient" format="reference"/>
    <attr name="toolbarEndGradient" format="reference"/>
    <attr name="fillLinkFromClipboard" format="reference"/>
    <attr name="syncDisconnected" format="reference" />
    <attr name="syncDisconnectedBackground" format="reference" />
    <attr name="addOnPrivateBrowsingExteriorCircleBackground" format="reference"/>
    <attr name="awesomeBarIndicatorColor" format="reference|color"/>
    <attr name="awesomeBarIndicatorBookmarkColor" format="reference|color"/>

    <declare-styleable name="TrackingProtectionCategory">
        <attr name="categoryItemTitle" format="reference" />
        <attr name="categoryItemDescription" format="reference" />
    </declare-styleable>

    <declare-styleable name="SwitchWithDescription">
        <attr name="switchTitle" format="reference" />
        <attr name="switchDescriptionOn" format="reference" />
        <attr name="switchDescriptionOff" format="reference" />
        <attr name="switchIconOn" format="reference" />
        <attr name="switchIconOff" format="reference" />
        <attr name="switchShowIcon" format="boolean" />
    </declare-styleable>

    <declare-styleable name="DeleteBrowsingDataItem">
        <attr name="deleteBrowsingDataItemTitle" format="reference" />
        <attr name="deleteBrowsingDataItemSubtitle" format="reference" />
        <attr name="deleteBrowsingDataItemIcon" format="reference" />
    </declare-styleable>

    <attr name="selectPromptHeaderTextColor" format="reference"/>

    <declare-styleable name="TextPercentageSeekBarPreference">
        <attr format="integer" name="min"/>
        <attr name="android:max"/>
        <attr name="android:layout"/>
        <attr format="integer" name="seekBarIncrement"/>
        <attr format="boolean" name="adjustable"/>
        <attr format="boolean" name="showSeekBarValue"/>
        <attr format="boolean" name="updatesContinuously"/>
    </declare-styleable>

    <declare-styleable name="RadioButtonPreference">
        <attr format="string|boolean|integer|reference|float" name="defaultValue"/>
        <attr name="android:defaultValue"/>
    </declare-styleable>

    <declare-styleable name="PreferenceBackedRadioButton">
        <attr format="string" name="preferenceKey"/>
        <attr format="boolean" name="preferenceKeyDefaultValue"/>
    </declare-styleable>
</resources>