Skip to content

Commit

Permalink
Clean up/formatting; Tracklist shuffle fix; Track tooltip fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noee committed Jan 17, 2019
1 parent fd72443 commit c73531a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
3 changes: 2 additions & 1 deletion plasmoid/contents/ui/FullView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.kde.plasma.plasmoid 2.0
import org.kde.kirigami 2.4 as Kirigami
import Qt.labs.platform 1.0

import 'helpers/utils.js' as Utils
import 'helpers'
import 'models'
import 'controls'
Expand Down Expand Up @@ -859,7 +860,7 @@ Item {
MenuItem {
text: "Shuffle Playing Now"
enabled: !trackView.searchMode
onTriggered: mcws.setShuffle(zoneView.currentIndex, 'reshuffle')
onTriggered: zoneView.currentPlayer.setShuffle('reshuffle')
}
MenuItem {
text: "Clear Playing Now"
Expand Down
5 changes: 3 additions & 2 deletions plasmoid/contents/ui/McwsConnection.qml
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,9 @@ Item {
zone.track = {}
}
trackKeyChanged(obj)
debugLogger('Zone during trackChange', 'Obj: %1, Zone: %2'
.arg(obj.zonename).arg(zone.zonename))
if (obj.zonename !== zone.zonename)
debugLogger('Zone during trackChange', 'Obj: %1, Zone: %2'
.arg(obj.zonename).arg(zone.zonename))
}

// Next file info
Expand Down
29 changes: 18 additions & 11 deletions plasmoid/contents/ui/helpers/LogWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,30 @@ ApplicationWindow {
property string windowTitle: ''

header: RowLayout {
CheckBox {
id: autoScroll
checked: true
text: 'Auto Scroll'
}
ToolButton {
icon.name: 'format-align-vertical-top'
Layout.preferredHeight: units.iconSizes.medium
Layout.preferredWidth: units.iconSizes.medium
onClicked: msgs.positionViewAtBeginning()
}
ToolButton {
icon.name: 'format-align-vertical-bottom'
Layout.preferredHeight: units.iconSizes.medium
Layout.preferredWidth: units.iconSizes.medium
onClicked: msgs.positionViewAtEnd()
}

Item {
Layout.fillWidth: true
}
CheckBox {
id: autoScroll
checked: true
text: 'Auto Scroll'
}
ToolButton {
icon.name: 'edit-clear'
Layout.preferredHeight: units.iconSizes.medium
Layout.preferredWidth: units.iconSizes.medium
onClicked: msgModel.clear()
}
}
Expand Down Expand Up @@ -109,13 +114,15 @@ ApplicationWindow {
width: parent.width
Kirigami.BasicListItem {
text: title
separatorVisible: false
icon: iconString
textColor: type !== LoggerType.Info ? 'red' : 'green'
Label {
text: message
Layout.preferredWidth: parent.width/1.8
wrapMode: Text.WrapAnywhere
}
onClicked: msgs.currentIndex = index
}
Label {
text: message
Layout.preferredWidth: parent.width/1.6
wrapMode: Text.WrapAnywhere
}
}
}
Expand Down

0 comments on commit c73531a

Please sign in to comment.