| 1 |
/* |
| 2 |
* Copyright 2014 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 |
|
| 17 |
import QtQuick 2.4 |
| 18 |
|
| 19 |
/*! |
| 20 |
\qmltype ComboButtonStyle |
| 21 |
\inqmlmodule Lomiri.Components.Styles 1.1 |
| 22 |
\ingroup style-api |
| 23 |
\brief Style API for ComboButton component. |
| 24 |
|
| 25 |
The component defines the style API for the ComboButton component. |
| 26 |
*/ |
| 27 |
Item { |
| 28 |
/*! |
| 29 |
Width of the drop down button. |
| 30 |
*/ |
| 31 |
property real dropDownWidth |
| 32 |
|
| 33 |
/*! |
| 34 |
Width of the dropdown button separator. |
| 35 |
*/ |
| 36 |
property real dropDownSeparatorWidth |
| 37 |
|
| 38 |
/*! |
| 39 |
Distance between the combo list and the main button. |
| 40 |
*/ |
| 41 |
property real comboListMargin |
| 42 |
|
| 43 |
/*! |
| 44 |
The item which will hold the combo list data. Implementations can point |
| 45 |
both this and \l comboListPanel to the same component, however separate |
| 46 |
items should be used if a gap between the panel and the content is required. |
| 47 |
See Ambiance theme. |
| 48 |
*/ |
| 49 |
property Item comboListHolder |
| 50 |
|
| 51 |
/*! |
| 52 |
The item pointing to the panel holding the combo list and additional design |
| 53 |
artifacts. It is used by the component to drive the expansion size. |
| 54 |
*/ |
| 55 |
property Item comboListPanel |
| 56 |
|
| 57 |
/*! |
| 58 |
Default color for the main button. |
| 59 |
*/ |
| 60 |
property color defaultColor |
| 61 |
|
| 62 |
/*! |
| 63 |
Default gradient for the main button. |
| 64 |
*/ |
| 65 |
property Gradient defaultGradient |
| 66 |
|
| 67 |
/*! |
| 68 |
Default color for the dropdown button and the combo list both when expanded |
| 69 |
and collapsed. Implementations can define different color for expanded/collapsed |
| 70 |
using the \a styledItem.expanded property. |
| 71 |
*/ |
| 72 |
property color defaultDropdownColor |
| 73 |
|
| 74 |
/*! |
| 75 |
Default font used in the main button. |
| 76 |
*/ |
| 77 |
property font defaultFont |
| 78 |
} |