mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Unify small icon sizes in file details components
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
fef9f3b643
commit
313592645d
3 changed files with 11 additions and 6 deletions
|
@ -165,6 +165,8 @@ GridLayout {
|
||||||
bgNormalOpacity: 0
|
bgNormalOpacity: 0
|
||||||
|
|
||||||
icon.source: "image://svgimage-custom-color/add.svg/" + Style.ncTextColor
|
icon.source: "image://svgimage-custom-color/add.svg/" + Style.ncTextColor
|
||||||
|
icon.width: Style.smallIconSize
|
||||||
|
icon.height: Style.smallIconSize
|
||||||
|
|
||||||
visible: (root.isPlaceholderLinkShare || root.isSecureFileDropPlaceholderLinkShare) && root.canCreateLinkShares
|
visible: (root.isPlaceholderLinkShare || root.isSecureFileDropPlaceholderLinkShare) && root.canCreateLinkShares
|
||||||
enabled: visible
|
enabled: visible
|
||||||
|
@ -201,8 +203,8 @@ GridLayout {
|
||||||
|
|
||||||
icon.source: shareLinkCopied ? "image://svgimage-custom-color/copy.svg/" + Style.ncHeaderTextColor :
|
icon.source: shareLinkCopied ? "image://svgimage-custom-color/copy.svg/" + Style.ncHeaderTextColor :
|
||||||
"image://svgimage-custom-color/copy.svg/" + Style.ncTextColor
|
"image://svgimage-custom-color/copy.svg/" + Style.ncTextColor
|
||||||
icon.width: 16
|
icon.width: Style.smallIconSize
|
||||||
icon.height: 16
|
icon.height: Style.smallIconSize
|
||||||
|
|
||||||
visible: root.isLinkShare || root.isInternalLinkShare
|
visible: root.isLinkShare || root.isInternalLinkShare
|
||||||
enabled: visible
|
enabled: visible
|
||||||
|
@ -246,6 +248,8 @@ GridLayout {
|
||||||
bgNormalOpacity: 0
|
bgNormalOpacity: 0
|
||||||
|
|
||||||
icon.source: "image://svgimage-custom-color/more.svg/" + Style.ncTextColor
|
icon.source: "image://svgimage-custom-color/more.svg/" + Style.ncTextColor
|
||||||
|
icon.width: Style.smallIconSize
|
||||||
|
icon.height: Style.smallIconSize
|
||||||
|
|
||||||
visible: !root.isPlaceholderLinkShare && !root.isSecureFileDropPlaceholderLinkShare && !root.isInternalLinkShare
|
visible: !root.isPlaceholderLinkShare && !root.isSecureFileDropPlaceholderLinkShare && !root.isInternalLinkShare
|
||||||
enabled: visible
|
enabled: visible
|
||||||
|
|
|
@ -263,10 +263,10 @@ Page {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: moreMenu
|
id: moreMenu
|
||||||
|
|
||||||
property int rowIconWidth: 16
|
readonly property int rowIconWidth: Style.smallIconSize
|
||||||
property int indicatorItemWidth: 20
|
readonly property int indicatorItemWidth: 20
|
||||||
property int indicatorSpacing: Style.standardSpacing
|
readonly property int indicatorSpacing: Style.standardSpacing
|
||||||
property int itemPadding: Style.smallSpacing
|
readonly property int itemPadding: Style.smallSpacing
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,7 @@ QtObject {
|
||||||
|
|
||||||
property int iconButtonWidth: 36
|
property int iconButtonWidth: 36
|
||||||
property int standardPrimaryButtonHeight: 40
|
property int standardPrimaryButtonHeight: 40
|
||||||
|
readonly property int smallIconSize: 16
|
||||||
|
|
||||||
property int minActivityHeight: variableSize(32)
|
property int minActivityHeight: variableSize(32)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue