browser/metro/theme/defines.inc

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/metro/theme/defines.inc	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,123 @@
     1.4 +%filter substitution
     1.5 +
     1.6 +%define panel_dark_color #41464C
     1.7 +%define panel_dark_background url(chrome://browser/skin/images/panel-dark.png)
     1.8 +%define panel_light_color #F1F1F1
     1.9 +
    1.10 +%define field_sizing 30px
    1.11 +%define field_foreground_color #000000
    1.12 +%define field_disabled_foreground_color #999999
    1.13 +%define field_mid_foreground_color #bababa
    1.14 +%define field_background_color #FFFFFF
    1.15 +
    1.16 +%define border_color #BFC6CE
    1.17 +%define selected_color #FF8000
    1.18 +
    1.19 +%define urlbar_border_color #BFC6CC
    1.20 +%define urlbar_edit_height 36px
    1.21 +
    1.22 +%define toolbar_vertical_spacing 5px
    1.23 +%define toolbar_horizontal_spacing 17px
    1.24 +%define toolbar_horizontal_padding 21px
    1.25 +%define toolbar_snapped_horizontal_padding 10px
    1.26 +%define toolbar_snapped_horizontal_spacing 10px
    1.27 +
    1.28 +% XXX Per UX mockups, this should be 68px, but we need to make this
    1.29 +% one pixel higher to reduce button clipping until bug 905453 is resolved
    1.30 +%define toolbar_height 69px
    1.31 +%define labelled_toolbar_height 90px
    1.32 +%define tabs_height 178px
    1.33 +%define newtab_button_width 63px
    1.34 +%define tabs_scrollarrow_width 64px
    1.35 +%define findbar_height 54px
    1.36 +
    1.37 +%define progress_height 5px
    1.38 +
    1.39 +%define metro_orange #FF8000
    1.40 +
    1.41 +%define thumbnail_width 232px
    1.42 +%define thumbnail_height 148px
    1.43 +
    1.44 +%define grid_column_width 131px
    1.45 +%define grid_double_column_width 262px
    1.46 +%define grid_row_height 86px
    1.47 +%define grid_double_row_height 172px
    1.48 +%define grid_search_width 86px
    1.49 +
    1.50 +%define compactgrid_column_width 62px
    1.51 +%define compactgrid_row_height 62px
    1.52 +
    1.53 +%define tile_border_color #dbdcde
    1.54 +%define tile_spacing 12px
    1.55 +%define tile_side_margin 6px
    1.56 +
    1.57 +%define scroller_thickness 4px
    1.58 +%define scroller_minimum 8px
    1.59 +
    1.60 +%define metro_spacing_xsmall 3px
    1.61 +%define metro_spacing_small 5px
    1.62 +%define metro_spacing_snormal 10px
    1.63 +%define metro_spacing_normal 15px
    1.64 +%define metro_spacing_xnormal 20px
    1.65 +%define metro_spacing_xxnormal 25px
    1.66 +%define metro_spacing_xxxnormal 30px
    1.67 +%define metro_spacing_large 40px
    1.68 +
    1.69 +%define metro_border_thin 1px
    1.70 +%define metro_border_thick 2px
    1.71 +%define metro_border_xthick 4px
    1.72 +
    1.73 +%define metro_font_snormal 14px
    1.74 +%define metro_font_normal 15px
    1.75 +%define metro_font_large 25px
    1.76 +%define metro_font_xlarge 35px
    1.77 +%define metro_font_xxlarge 45px
    1.78 +
    1.79 +%define font_normal 16px
    1.80 +%define font_snormal 15px
    1.81 +%define font_small 12px
    1.82 +%define font_xsmall 11px
    1.83 +
    1.84 +%define touch_row 47px
    1.85 +%define touch_button_small 37px
    1.86 +%define touch_action_minwidth 133px
    1.87 +%define touch_action_snapped_minwidth 80px
    1.88 +
    1.89 +%define margin_large 16px
    1.90 +%define margin_xnormal 7px
    1.91 +%define margin_normal 5px
    1.92 +
    1.93 +%define padding_xxnormal 8px
    1.94 +%define padding_xnormal 7px
    1.95 +%define padding_normal 5px
    1.96 +
    1.97 +%define border_width_large 2px
    1.98 +%define border_width_small 1px
    1.99 +%define border_width_tiny 1px
   1.100 +
   1.101 +%define border_radius_normal 5px
   1.102 +%define border_radius_tiny 1px
   1.103 +
   1.104 +%define shadow_width_small 1px
   1.105 +
   1.106 +% easing function and duration for animations match winJS showPanel method
   1.107 +%define metro_animation_duration 550ms
   1.108 +%define metro_animation_easing cubic-bezier(0.1, 0.9, 0.2, 1)
   1.109 +
   1.110 +% duration and easing function to approximately match system keyboard
   1.111 +% as animation cant be in lock-step with system OSK animation, some mismatch is inevitable
   1.112 +% so we match velocity/cadence but delay to bring appbars in a tad after OSK
   1.113 +%define appbar_keyboard_slideup_duration 420ms
   1.114 +%define appbar_keyboard_slideup_delay 90ms
   1.115 +%define appbar_keyboard_slideup_easing cubic-bezier(0, 1, 0.4, 0.96)
   1.116 +
   1.117 +% minimum resolution cutoffs for displaying 1.4x and 1.8x versions of icons
   1.118 +% XXX currently, there's some weirdness with the dppx unit, as documented in
   1.119 +% bug 895277. Because of that, we have to use 1.39dppx instead of 1.4dppx.
   1.120 +%define min_res_140pc 1.39dppx
   1.121 +%define min_res_180pc 1.8dppx
   1.122 +
   1.123 +% error page style constants
   1.124 +%define error_page_background_color #eee
   1.125 +%define error_page_warning_color #efd400
   1.126 +%define error_page_error_color #bf0000
   1.127 \ No newline at end of file

mercurial