~3v1n0/ubuntu-settings-components/add-months-js-clamping

« back to all changes in this revision

Viewing changes to plugins/Ubuntu/Settings/Menus/Style/TouchStyle.qml

  • Committer: Bileto Bot
  • Date: 2016-11-16 18:52:43 UTC
  • mfrom: (146.4.57 touch+pointer-styles)
  • Revision ID: ci-train-bot@canonical.com-20161116185243-o399ryjh002umz1a
* Menus: add Pointer and Touch styles to be used depending on the user
  interaction with components
  Menu items now have a new Style property that defines some common properties
  such as shared colors and sizes that change depending on the UX journey. I'm
  only defining Pointer and TouchStyles for now, but they can be easily
  overridden in case.
  Removed some deprecated properties and adapted colors and sizes to new
  style.
* Bump package version as there's a new API for various components

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2016 Canonical Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Author: Marco Trevisan <marco.trevisan@canonical.com>
 
17
 */
 
18
 
 
19
pragma Singleton
 
20
import QtQuick 2.4
 
21
import Ubuntu.Components 1.3
 
22
 
 
23
BaseStyle {
 
24
    id: style
 
25
 
 
26
    readonly property SlotsLayout __reference_layout: SlotsLayout {}
 
27
 
 
28
    padding {
 
29
        top: __reference_layout.padding.top
 
30
        bottom: __reference_layout.padding.bottom
 
31
        leading: __reference_layout.padding.leading
 
32
        trailing: __reference_layout.padding.trailing
 
33
    }
 
34
 
 
35
    minimumHeight: units.gu(5.9)
 
36
    fontSize: units.gu(2)
 
37
    iconSize: units.gu(2.5)
 
38
    buttonFontSize: units.gu(1.7)
 
39
    buttonHeight: units.gu(3)
 
40
}