mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Merge pull request #10163 from davidkelly/dk/3938
updated availability combo dialog
This commit is contained in:
commit
57d8ec883e
3 changed files with 50 additions and 5 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;
|
||||
}
|
||||
|
@ -92,8 +116,7 @@ Item {
|
|||
color: selectedOptionIndex === index ? '#cee6ff' : 'white';
|
||||
Rectangle {
|
||||
id: comboOptionSelected;
|
||||
visible: selectedOptionIndex === index ? true : false;
|
||||
color: hifi.colors.blueAccent;
|
||||
color: selectedOptionIndex == index ? hifi.colors.blueAccent : 'white';
|
||||
anchors.left: parent.left;
|
||||
anchors.leftMargin: 20;
|
||||
anchors.top: parent.top;
|
||||
|
@ -102,7 +125,7 @@ Item {
|
|||
height: width;
|
||||
radius: width;
|
||||
border.width: 3;
|
||||
border.color: hifi.colors.blueHighlight;
|
||||
border.color: selectedOptionIndex === index ? hifi.colors.blueHighlight: hifi.colors.lightGrayText;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -310,9 +310,9 @@ Rectangle {
|
|||
hoverEnabled: true;
|
||||
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