Compare commits
1 Commits
work/color
...
work/ratij
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6466f7f56c |
@@ -108,7 +108,7 @@ Loader {
|
||||
id: maximizeButton
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
visible: componentRoot.hovered && (componentRoot.truncated || checked)
|
||||
visible: false
|
||||
checkable: true
|
||||
icon.name: checked ? "go-up" : "go-down"
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ a{
|
||||
RoomManager.openResource(link)
|
||||
}
|
||||
onHoveredLinkChanged: if (hoveredLink.length > 0 && hoveredLink !== "1") {
|
||||
applicationWindow().hoverLinkIndicator.text = hoveredLink;
|
||||
// applicationWindow().hoverLinkIndicator.text = hoveredLink;
|
||||
} else {
|
||||
applicationWindow().hoverLinkIndicator.text = "";
|
||||
}
|
||||
|
||||
@@ -550,11 +550,7 @@ ColumnLayout {
|
||||
}
|
||||
}
|
||||
|
||||
background: Rectangle {
|
||||
visible: mainContainer.hovered && (Config.compactLayout || root.alwaysMaxWidth)
|
||||
color: Kirigami.ColorUtils.tintWithAlpha(Kirigami.Theme.backgroundColor, Kirigami.Theme.highlightColor, 0.15)
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
}
|
||||
background: Item {}
|
||||
|
||||
TapHandler {
|
||||
acceptedDevices: PointerDevice.Mouse
|
||||
|
||||
@@ -238,7 +238,8 @@ QQC2.ScrollView {
|
||||
width: delegate ? delegate.bubbleWidth : Kirigami.Units.gridUnit * 4
|
||||
|
||||
currentRoom: root.currentRoom
|
||||
showActions: delegate && delegate.hovered
|
||||
visible: false
|
||||
showActions: false
|
||||
verified: delegate && delegate.verified
|
||||
editable: delegate && delegate.author.isLocalUser && (delegate.delegateType === DelegateType.Emote || delegate.delegateType === DelegateType.Message)
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ Delegates.RoundedItemDelegate {
|
||||
enabled: false
|
||||
implicitWidth: Kirigami.Units.iconSizes.smallMedium
|
||||
implicitHeight: Kirigami.Units.iconSizes.smallMedium
|
||||
visible: currentRoom.pushNotificationState === PushNotificationState.Mute && !configButton.visible && !hasNotifications
|
||||
visible: currentRoom.pushNotificationState === PushNotificationState.Mute && !hasNotifications
|
||||
Accessible.name: i18n("Muted room")
|
||||
Layout.rightMargin: Kirigami.Units.smallSpacing
|
||||
}
|
||||
@@ -122,16 +122,6 @@ Delegates.RoundedItemDelegate {
|
||||
text: notificationCountLabel.text
|
||||
}
|
||||
}
|
||||
|
||||
QQC2.Button {
|
||||
id: configButton
|
||||
visible: root.hovered && !Kirigami.Settings.isMobile && !Config.compactRoomList
|
||||
text: i18n("Configure room")
|
||||
display: QQC2.Button.IconOnly
|
||||
|
||||
icon.name: "configure"
|
||||
onClicked: createRoomListContextMenu()
|
||||
}
|
||||
}
|
||||
|
||||
function createRoomListContextMenu() {
|
||||
@@ -139,17 +129,6 @@ Delegates.RoundedItemDelegate {
|
||||
const menu = component.createObject(root, {
|
||||
room: root.currentRoom,
|
||||
});
|
||||
if (!Kirigami.Settings.isMobile && !Config.compactRoomList) {
|
||||
configButton.visible = true;
|
||||
configButton.down = true;
|
||||
}
|
||||
menu.closed.connect(function() {
|
||||
configButton.down = undefined;
|
||||
configButton.visible = Qt.binding(() => {
|
||||
return root.hovered && !Kirigami.Settings.isMobile
|
||||
&& !Config.compactRoomList;
|
||||
});
|
||||
})
|
||||
menu.open()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user