mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 12:54:30 +02:00
Checkpoint
This commit is contained in:
parent
202d4e8107
commit
9d19aa3c79
3 changed files with 65 additions and 57 deletions
|
@ -19,6 +19,7 @@ Item {
|
||||||
property alias headerText: headerText.text
|
property alias headerText: headerText.text
|
||||||
property real popupRadius: hifi.dimensions.borderRadius
|
property real popupRadius: hifi.dimensions.borderRadius
|
||||||
property real headerTextPixelSize: 22
|
property real headerTextPixelSize: 22
|
||||||
|
property real popupTextPixelSize: 16
|
||||||
FontLoader { id: ralewayRegular; source: "../../fonts/Raleway-Regular.ttf"; }
|
FontLoader { id: ralewayRegular; source: "../../fonts/Raleway-Regular.ttf"; }
|
||||||
FontLoader { id: ralewaySemiBold; source: "../../fonts/Raleway-SemiBold.ttf"; }
|
FontLoader { id: ralewaySemiBold; source: "../../fonts/Raleway-SemiBold.ttf"; }
|
||||||
visible: false
|
visible: false
|
||||||
|
@ -32,73 +33,76 @@ Item {
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: Math.max(parent.width * 0.75, 400)
|
width: Math.max(parent.width * 0.75, 400)
|
||||||
height: contentContainer.height*1.5
|
height: childrenRect.height + 50
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
radius: popupRadius
|
radius: popupRadius
|
||||||
color: "white"
|
color: "white"
|
||||||
Item {
|
Column {
|
||||||
id: contentContainer
|
id: contentContainer
|
||||||
|
width: parent.width - 60
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
anchors.margins: 20
|
spacing: 20
|
||||||
height: childrenRect.height
|
Row {
|
||||||
Item {
|
|
||||||
id: popupHeaderContainer
|
id: popupHeaderContainer
|
||||||
visible: headerText.text !== "" || glyphText.text !== ""
|
visible: headerText.text !== "" || headerGlyph.text !== ""
|
||||||
// Size
|
height: 30
|
||||||
width: parent.width
|
Column {
|
||||||
height: childrenRect.height
|
// Header Glyph
|
||||||
// Anchors
|
HiFiGlyphs {
|
||||||
anchors.top: parent.top
|
id: headerGlyph
|
||||||
anchors.left: parent.left
|
visible: headerGlyph.text !== ""
|
||||||
// Header Glyph
|
// Size
|
||||||
HiFiGlyphs {
|
height: parent.parent.height
|
||||||
id: headerGlyph
|
// Anchors
|
||||||
visible: headerText.text !== ""
|
anchors.left: parent.left
|
||||||
// Text Size
|
anchors.leftMargin: -15
|
||||||
size: headerTextPixelSize * 2.5
|
// Text Size
|
||||||
// Anchors
|
size: headerTextPixelSize*2.5
|
||||||
anchors.top: parent.top
|
// Style
|
||||||
anchors.left: parent.left
|
horizontalAlignment: Text.AlignHLeft
|
||||||
anchors.rightMargin: 5
|
verticalAlignment: Text.AlignVCenter
|
||||||
// Style
|
color: hifi.colors.darkGray
|
||||||
horizontalAlignment: Text.AlignHCenter
|
}
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
color: hifi.colors.darkGray
|
|
||||||
}
|
}
|
||||||
|
Column {
|
||||||
|
// Header Text
|
||||||
|
Text {
|
||||||
|
id: headerText
|
||||||
|
visible: headerText.text !== ""
|
||||||
|
// Size
|
||||||
|
height: parent.parent.height
|
||||||
|
// Anchors
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.leftMargin: -15
|
||||||
|
// Text Size
|
||||||
|
font.pixelSize: headerTextPixelSize
|
||||||
|
// Style
|
||||||
|
font.family: ralewaySemiBold.name
|
||||||
|
color: hifi.colors.darkGray
|
||||||
|
horizontalAlignment: Text.AlignHLeft
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
textFormat: Text.StyledText
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Row {
|
||||||
|
// Popup Text
|
||||||
Text {
|
Text {
|
||||||
id: headerText
|
id: popupText
|
||||||
visible: headerGlyph.text !== ""
|
// Size
|
||||||
// Text Size
|
width: parent.parent.width
|
||||||
font.pixelSize: headerTextPixelSize
|
// Text alignment
|
||||||
// Anchors
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.left: headerGlyph.right
|
|
||||||
// Style
|
|
||||||
font.family: ralewaySemiBold.name
|
|
||||||
color: hifi.colors.darkGray
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHLeft
|
||||||
|
// Style
|
||||||
|
font.pixelSize: popupTextPixelSize
|
||||||
|
font.family: ralewayRegular.name
|
||||||
|
color: hifi.colors.darkGray
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
textFormat: Text.StyledText
|
textFormat: Text.StyledText
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Text {
|
|
||||||
id: popupText
|
|
||||||
// Anchors
|
|
||||||
anchors.top: popupHeaderContainer.visible ? popupHeaderContainer.anchors.bottom : parent.top
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
// Text alignment
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
// Style
|
|
||||||
font.pixelSize: hifi.fontSizes.textFieldInput
|
|
||||||
font.family: ralewayRegular.name
|
|
||||||
color: hifi.colors.darkGray
|
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
textFormat: Text.StyledText
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
|
@ -220,7 +220,9 @@ Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.LeftButton
|
acceptedButtons: Qt.LeftButton
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onClicked: letterbox("This user is an admin on this domain. Admins can <b>Silence</b> and <b>Ban</b> other users at their discretion - so be extra nice!", hifi.glyphs.question, "Domain Admin")
|
onClicked: letterbox("This user is an admin on this domain. Admins can <b>Silence</b> and <b>Ban</b> other users at their discretion - so be extra nice!",
|
||||||
|
hifi.glyphs.question,
|
||||||
|
"Domain Admin")
|
||||||
onEntered: adminLabelQuestionMarkText.color = "#94132e"
|
onEntered: adminLabelQuestionMarkText.color = "#94132e"
|
||||||
onExited: adminLabelQuestionMarkText.color = hifi.colors.redHighlight
|
onExited: adminLabelQuestionMarkText.color = hifi.colors.redHighlight
|
||||||
}
|
}
|
||||||
|
|
|
@ -403,8 +403,10 @@ Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.LeftButton
|
acceptedButtons: Qt.LeftButton
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onClicked: letterbox('Silencing a user mutes their microphone. Silenced users can unmute themselves by clicking the "UNMUTE" button on their HUD.\n\n' +
|
onClicked: letterbox("<b>Silence</b> mutes a user's microphone. Silenced users can unmute themselves by clicking "UNMUTE" on their toolbar.<br><br>" +
|
||||||
"Banning a user will remove them from this domain and prevent them from returning. You can un-ban users from your domain's settings page.)", "", "")
|
"<b>Ban</b> removes a user from this domain and prevents them from returning. Admins can un-ban users from the Sandbox Domain Settings Page.)",
|
||||||
|
hifi.glyphs.question,
|
||||||
|
"Admin Actions")
|
||||||
onEntered: adminHelpText.color = "#94132e"
|
onEntered: adminHelpText.color = "#94132e"
|
||||||
onExited: adminHelpText.color = hifi.colors.redHighlight
|
onExited: adminHelpText.color = hifi.colors.redHighlight
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue