mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 04:03:59 +02:00
Scattered X glyphs around the letterbox and combo dialogs
This commit is contained in:
parent
ee9bc0bfa4
commit
870e003311
3 changed files with 48 additions and 2 deletions
|
@ -12,6 +12,7 @@
|
|||
import QtQuick 2.5
|
||||
import QtQuick.Controls 1.4
|
||||
import "../styles-uit"
|
||||
import "../controls-uit"
|
||||
|
||||
Item {
|
||||
property var dialogTitleText : "";
|
||||
|
@ -67,6 +68,29 @@ Item {
|
|||
verticalAlignment: Text.AlignTop;
|
||||
}
|
||||
|
||||
HiFiGlyphs {
|
||||
id: closeGlyphButton;
|
||||
text: hifi.glyphs.close;
|
||||
size: 32;
|
||||
anchors.verticalCenter: dialogTitle.verticalCenter;
|
||||
anchors.right: parent.right;
|
||||
anchors.rightMargin: 20;
|
||||
MouseArea {
|
||||
anchors.fill: closeGlyphButton;
|
||||
hoverEnabled: true;
|
||||
onEntered: {
|
||||
parent.text = hifi.glyphs.closeInverted;
|
||||
}
|
||||
onExited: {
|
||||
parent.text = hifi.glyphs.close;
|
||||
}
|
||||
onClicked: {
|
||||
combo.visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ListModel {
|
||||
id: comboListViewModel;
|
||||
}
|
||||
|
|
|
@ -85,6 +85,28 @@ Item {
|
|||
wrapMode: Text.WordWrap
|
||||
textFormat: Text.StyledText
|
||||
}
|
||||
HiFiGlyphs {
|
||||
id: closeGlyphButton
|
||||
text: hifi.glyphs.close
|
||||
size: headerTextPixelSize
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: -20
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: -25
|
||||
MouseArea {
|
||||
anchors.fill: closeGlyphButton
|
||||
hoverEnabled: true
|
||||
onEntered: {
|
||||
parent.text = hifi.glyphs.closeInverted;
|
||||
}
|
||||
onExited: {
|
||||
parent.text = hifi.glyphs.close;
|
||||
}
|
||||
onClicked: {
|
||||
letterbox.visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Popup Text
|
||||
Text {
|
||||
|
|
|
@ -311,9 +311,9 @@ Rectangle {
|
|||
enabled: activeTab === "connectionsTab";
|
||||
onClicked: letterbox(hifi.glyphs.question,
|
||||
"Connections and Friends",
|
||||
"<font color='purple'>Purple borders around profile pictures are <b>Connections</b>.</font><br>" +
|
||||
"<font color='purple'>Purple borders around profile pictures represent <b>Connections</b>.</font><br>" +
|
||||
"When your availability is set to Everyone, Connections can see your username and location.<br><br>" +
|
||||
"<font color='green'>Green borders around profile pictures are <b>Friends</b>.</font><br>" +
|
||||
"<font color='green'>Green borders around profile pictures represent <b>Friends</b>.</font><br>" +
|
||||
"When your availability is set to Friends, only Friends can see your username and location.");
|
||||
onEntered: connectionsHelpText.color = hifi.colors.blueHighlight;
|
||||
onExited: connectionsHelpText.color = hifi.colors.blueAccent;
|
||||
|
|
Loading…
Reference in a new issue