Merge pull request #5024 from ctrlaltdavid/20561

CR for #20561 - Fix address bar dialog text
This commit is contained in:
Andrew Meadows 2015-06-03 09:33:29 -07:00
commit b0fdb0413c
8 changed files with 17 additions and 15 deletions

View file

@ -22,6 +22,7 @@ Item {
property int animationDuration: hifi.effects.fadeInDuration property int animationDuration: hifi.effects.fadeInDuration
property bool destroyOnInvisible: false property bool destroyOnInvisible: false
property real scale: 1.25 // Make this dialog a little larger than normal
implicitWidth: addressBarDialog.implicitWidth implicitWidth: addressBarDialog.implicitWidth
implicitHeight: addressBarDialog.implicitHeight implicitHeight: addressBarDialog.implicitHeight
@ -41,9 +42,9 @@ Item {
id: backgroundImage id: backgroundImage
source: "../images/address-bar.svg" source: "../images/address-bar.svg"
width: 576 width: 576 * root.scale
height: 80 height: 80 * root.scale
property int inputAreaHeight: 56 // Height of the background's input area property int inputAreaHeight: 56.0 * root.scale // Height of the background's input area
property int inputAreaStep: (height - inputAreaHeight) / 2 property int inputAreaStep: (height - inputAreaHeight) / 2
TextInput { TextInput {
@ -58,7 +59,8 @@ Item {
} }
font.pointSize: 15 font.pixelSize: hifi.fonts.pixelSize * root.scale
helperText: "Go to: place, @user, /path, network address" helperText: "Go to: place, @user, /path, network address"
onAccepted: { onAccepted: {

View file

@ -9,7 +9,7 @@ Original.SpinBox {
style: SpinBoxStyle { style: SpinBoxStyle {
HifiConstants { id: hifi } HifiConstants { id: hifi }
font.family: hifi.fonts.fontFamily font.family: hifi.fonts.fontFamily
font.pointSize: hifi.fonts.fontSize font.pixelSize: hifi.fonts.pixelSize
} }
} }

View file

@ -4,6 +4,6 @@ import "../styles"
Original.Text { Original.Text {
HifiConstants { id: hifi } HifiConstants { id: hifi }
font.family: hifi.fonts.fontFamily font.family: hifi.fonts.fontFamily
font.pointSize: hifi.fonts.fontSize font.pixelSize: hifi.fonts.pixelSize
} }

View file

@ -4,6 +4,6 @@ import "../styles"
Original.TextArea { Original.TextArea {
HifiConstants { id: hifi } HifiConstants { id: hifi }
font.family: hifi.fonts.fontFamily font.family: hifi.fonts.fontFamily
font.pointSize: hifi.fonts.fontSize font.pixelSize: hifi.fonts.pixelSize
} }

View file

@ -4,6 +4,6 @@ import "../styles"
Original.TextEdit { Original.TextEdit {
HifiConstants { id: hifi } HifiConstants { id: hifi }
font.family: hifi.fonts.fontFamily font.family: hifi.fonts.fontFamily
font.pointSize: hifi.fonts.fontSize font.pixelSize: hifi.fonts.pixelSize
} }

View file

@ -4,6 +4,6 @@ import "../styles"
Text { Text {
HifiConstants { id: hifi } HifiConstants { id: hifi }
color: hifi.colors.hifiBlue color: hifi.colors.hifiBlue
font.pointSize: hifi.fonts.headerPointSize font.pixelSize: hifi.fonts.headerPixelSize
font.bold: true font.bold: true
} }

View file

@ -11,7 +11,7 @@ Original.TextInput {
color: hifi.colors.text color: hifi.colors.text
verticalAlignment: Original.TextInput.AlignVCenter verticalAlignment: Original.TextInput.AlignVCenter
font.family: hifi.fonts.fontFamily font.family: hifi.fonts.fontFamily
font.pointSize: hifi.fonts.fontSize font.pixelSize: hifi.fonts.pixelSize
/* /*
Original.Rectangle { Original.Rectangle {
@ -23,7 +23,7 @@ Original.TextInput {
*/ */
Text { Text {
anchors.fill: parent anchors.fill: parent
font.pointSize: parent.font.pointSize font.pixelSize: parent.font.pixelSize
font.family: parent.font.family font.family: parent.font.family
verticalAlignment: parent.verticalAlignment verticalAlignment: parent.verticalAlignment
horizontalAlignment: parent.horizontalAlignment horizontalAlignment: parent.horizontalAlignment

View file

@ -18,7 +18,7 @@ Item {
readonly property color background: sysPalette.dark readonly property color background: sysPalette.dark
readonly property color text: sysPalette.text readonly property color text: sysPalette.text
readonly property color disabledText: "gray" readonly property color disabledText: "gray"
readonly property color hintText: sysPalette.dark readonly property color hintText: "gray" // A bit darker than sysPalette.dark so that it is visible on the DK2
readonly property color light: sysPalette.light readonly property color light: sysPalette.light
readonly property alias activeWindow: activeWindow readonly property alias activeWindow: activeWindow
readonly property alias inactiveWindow: inactiveWindow readonly property alias inactiveWindow: inactiveWindow
@ -36,9 +36,9 @@ Item {
QtObject { QtObject {
id: fonts id: fonts
readonly property real headerPointSize: 24 readonly property string fontFamily: "Arial" // Available on both Windows and OSX
readonly property string fontFamily: "Helvetica" readonly property real pixelSize: 22 // Logical pixel size; works on Windows and OSX at varying physical DPIs
readonly property real fontSize: 18 readonly property real headerPixelSize: 32
} }
QtObject { QtObject {