~ci-train-bot/ubuntu-system-settings/ubuntu-system-settings-ubuntu-zesty-2381

« back to all changes in this revision

Viewing changes to plugins/mouse/SectionHeader.qml

  • Committer: Bileto Bot
  • Author(s): Daniel van Vugt
  • Date: 2016-11-29 11:11:37 UTC
  • mfrom: (1739.1.3 fix-1569227)
  • Revision ID: ci-train-bot@canonical.com-20161129111137-kij23sdzjmp3m00q
Fix unlabelled sliders in Mouse & Touchpad (LP: #1569227)

The problem was that the labels existed but had been clipped to zero
height in ItemTitle.qml, so never appeared. However once you make them
appear they conflict visually with the things around them (also fixed
here).

Also:
  * improved the title texts
  * increased the visibility of the main Mouse and Touchpad titles
  * removed the clumsy misplaced "Slow" and "Fast" labels
  * added comments describing what needs fixing next (in SliderMenu
    which is a different project) to replace the old Slow and Fast labels

System Settings needs A LOT of visual fixes so I had to restrain myself
and tried to keep this change mostly about just fixing LP: #1569227. (LP: #1569227)

Approved by: Jonas G. Drange

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
                top: parent.top
44
44
            }
45
45
            text: root.text
46
 
            fontSize: "medium"
 
46
            /* We are "large" to avoid looking like normal "medium" text */
 
47
            fontSize: "large"
47
48
            elide: Text.ElideRight
48
49
            color: Theme.palette.normal.baseText
49
50
            font.weight: Text.Normal
51
52
        highlightWhenPressed: false
52
53
        showDivider: false
53
54
    }
54
 
    Item {
55
 
        anchors {
56
 
            left: parent.left
57
 
            right: parent.right
58
 
        }
59
 
        height: childrenRect.height + units.gu(1)
60
 
        Label {
61
 
            anchors {
62
 
                left: parent.left
63
 
                top: parent.top
64
 
            }
65
 
            text: i18n.tr("Slow")
66
 
            fontSize: "small"
67
 
        }
68
 
        Label {
69
 
            anchors {
70
 
                right: parent.right
71
 
                top: parent.top
72
 
            }
73
 
            text: i18n.tr("Fast")
74
 
            fontSize: "small"
75
 
        }
76
 
    }
77
55
}