browser/metro/theme/defines.inc

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 %filter substitution
michael@0 2
michael@0 3 %define panel_dark_color #41464C
michael@0 4 %define panel_dark_background url(chrome://browser/skin/images/panel-dark.png)
michael@0 5 %define panel_light_color #F1F1F1
michael@0 6
michael@0 7 %define field_sizing 30px
michael@0 8 %define field_foreground_color #000000
michael@0 9 %define field_disabled_foreground_color #999999
michael@0 10 %define field_mid_foreground_color #bababa
michael@0 11 %define field_background_color #FFFFFF
michael@0 12
michael@0 13 %define border_color #BFC6CE
michael@0 14 %define selected_color #FF8000
michael@0 15
michael@0 16 %define urlbar_border_color #BFC6CC
michael@0 17 %define urlbar_edit_height 36px
michael@0 18
michael@0 19 %define toolbar_vertical_spacing 5px
michael@0 20 %define toolbar_horizontal_spacing 17px
michael@0 21 %define toolbar_horizontal_padding 21px
michael@0 22 %define toolbar_snapped_horizontal_padding 10px
michael@0 23 %define toolbar_snapped_horizontal_spacing 10px
michael@0 24
michael@0 25 % XXX Per UX mockups, this should be 68px, but we need to make this
michael@0 26 % one pixel higher to reduce button clipping until bug 905453 is resolved
michael@0 27 %define toolbar_height 69px
michael@0 28 %define labelled_toolbar_height 90px
michael@0 29 %define tabs_height 178px
michael@0 30 %define newtab_button_width 63px
michael@0 31 %define tabs_scrollarrow_width 64px
michael@0 32 %define findbar_height 54px
michael@0 33
michael@0 34 %define progress_height 5px
michael@0 35
michael@0 36 %define metro_orange #FF8000
michael@0 37
michael@0 38 %define thumbnail_width 232px
michael@0 39 %define thumbnail_height 148px
michael@0 40
michael@0 41 %define grid_column_width 131px
michael@0 42 %define grid_double_column_width 262px
michael@0 43 %define grid_row_height 86px
michael@0 44 %define grid_double_row_height 172px
michael@0 45 %define grid_search_width 86px
michael@0 46
michael@0 47 %define compactgrid_column_width 62px
michael@0 48 %define compactgrid_row_height 62px
michael@0 49
michael@0 50 %define tile_border_color #dbdcde
michael@0 51 %define tile_spacing 12px
michael@0 52 %define tile_side_margin 6px
michael@0 53
michael@0 54 %define scroller_thickness 4px
michael@0 55 %define scroller_minimum 8px
michael@0 56
michael@0 57 %define metro_spacing_xsmall 3px
michael@0 58 %define metro_spacing_small 5px
michael@0 59 %define metro_spacing_snormal 10px
michael@0 60 %define metro_spacing_normal 15px
michael@0 61 %define metro_spacing_xnormal 20px
michael@0 62 %define metro_spacing_xxnormal 25px
michael@0 63 %define metro_spacing_xxxnormal 30px
michael@0 64 %define metro_spacing_large 40px
michael@0 65
michael@0 66 %define metro_border_thin 1px
michael@0 67 %define metro_border_thick 2px
michael@0 68 %define metro_border_xthick 4px
michael@0 69
michael@0 70 %define metro_font_snormal 14px
michael@0 71 %define metro_font_normal 15px
michael@0 72 %define metro_font_large 25px
michael@0 73 %define metro_font_xlarge 35px
michael@0 74 %define metro_font_xxlarge 45px
michael@0 75
michael@0 76 %define font_normal 16px
michael@0 77 %define font_snormal 15px
michael@0 78 %define font_small 12px
michael@0 79 %define font_xsmall 11px
michael@0 80
michael@0 81 %define touch_row 47px
michael@0 82 %define touch_button_small 37px
michael@0 83 %define touch_action_minwidth 133px
michael@0 84 %define touch_action_snapped_minwidth 80px
michael@0 85
michael@0 86 %define margin_large 16px
michael@0 87 %define margin_xnormal 7px
michael@0 88 %define margin_normal 5px
michael@0 89
michael@0 90 %define padding_xxnormal 8px
michael@0 91 %define padding_xnormal 7px
michael@0 92 %define padding_normal 5px
michael@0 93
michael@0 94 %define border_width_large 2px
michael@0 95 %define border_width_small 1px
michael@0 96 %define border_width_tiny 1px
michael@0 97
michael@0 98 %define border_radius_normal 5px
michael@0 99 %define border_radius_tiny 1px
michael@0 100
michael@0 101 %define shadow_width_small 1px
michael@0 102
michael@0 103 % easing function and duration for animations match winJS showPanel method
michael@0 104 %define metro_animation_duration 550ms
michael@0 105 %define metro_animation_easing cubic-bezier(0.1, 0.9, 0.2, 1)
michael@0 106
michael@0 107 % duration and easing function to approximately match system keyboard
michael@0 108 % as animation cant be in lock-step with system OSK animation, some mismatch is inevitable
michael@0 109 % so we match velocity/cadence but delay to bring appbars in a tad after OSK
michael@0 110 %define appbar_keyboard_slideup_duration 420ms
michael@0 111 %define appbar_keyboard_slideup_delay 90ms
michael@0 112 %define appbar_keyboard_slideup_easing cubic-bezier(0, 1, 0.4, 0.96)
michael@0 113
michael@0 114 % minimum resolution cutoffs for displaying 1.4x and 1.8x versions of icons
michael@0 115 % XXX currently, there's some weirdness with the dppx unit, as documented in
michael@0 116 % bug 895277. Because of that, we have to use 1.39dppx instead of 1.4dppx.
michael@0 117 %define min_res_140pc 1.39dppx
michael@0 118 %define min_res_180pc 1.8dppx
michael@0 119
michael@0 120 % error page style constants
michael@0 121 %define error_page_background_color #eee
michael@0 122 %define error_page_warning_color #efd400
michael@0 123 %define error_page_error_color #bf0000

mercurial