Changeset View
Changeset View
Standalone View
Standalone View
plasmoid/contents/ui/main.qml
Property | Old Value | New Value |
---|---|---|
File Mode | 100755 | 100644 |
Show First 20 Lines • Show All 284 Lines • ▼ Show 20 Line(s) | 279 | Image { | |||
---|---|---|---|---|---|
285 | width: units.gridUnit * 1.6 | 285 | width: units.gridUnit * 1.6 | ||
286 | height: units.gridUnit * 1.6 | 286 | height: units.gridUnit * 1.6 | ||
287 | } | 287 | } | ||
288 | 288 | | |||
289 | PlasmaCore.SvgItem { | 289 | PlasmaCore.SvgItem { | ||
290 | id: topbarLeftDividerline | 290 | id: topbarLeftDividerline | ||
291 | anchors { | 291 | anchors { | ||
292 | left: barAnim.right | 292 | left: barAnim.right | ||
293 | leftMargin: units.gridUnit * 0.35 | 293 | leftMargin: units.gridUnit * 0.34 | ||
294 | top: parent.top | 294 | top: parent.top | ||
295 | topMargin: 0 | 295 | topMargin: 0 | ||
296 | bottom: parent.bottom | 296 | bottom: parent.bottom | ||
297 | bottomMargin: 0 | 297 | bottomMargin: 0 | ||
298 | } | 298 | } | ||
299 | 299 | | |||
300 | width: linetopleftvertSvg.elementSize("vertical-line").width | 300 | width: linetopleftvertSvg.elementSize("vertical-line").width | ||
301 | z: 110 | 301 | z: 110 | ||
▲ Show 20 Lines • Show All 241 Lines • ▼ Show 20 Line(s) | 542 | } else if (socket.status == WebSocket.Closing) { | |||
543 | statusId.text = "Shutting Down" | 543 | statusId.text = "Shutting Down" | ||
544 | statusId.color = "grey" | 544 | statusId.color = "grey" | ||
545 | midbarAnim.showstatsId() | 545 | midbarAnim.showstatsId() | ||
546 | } | 546 | } | ||
547 | } | 547 | } | ||
548 | 548 | | |||
549 | ColumnLayout { | 549 | ColumnLayout { | ||
550 | id: sidebar | 550 | id: sidebar | ||
551 | Layout.fillHeight: true; | 551 | height: units.gridUnit * 6 | ||
552 | width: units.gridUnit * 2 | 552 | width: units.gridUnit * 2 | ||
553 | 553 | | |||
554 | PlasmaComponents.TabBar { | 554 | PlasmaComponents.TabBar { | ||
555 | id: tabBar | 555 | id: tabBar | ||
556 | anchors.fill: parent | 556 | anchors.fill: parent | ||
557 | tabPosition: Qt.LeftEdge; | 557 | tabPosition: Qt.LeftEdge; | ||
558 | 558 | | |||
559 | PlasmaComponents.TabButton { | 559 | PlasmaComponents.TabButton { | ||
▲ Show 20 Lines • Show All 192 Lines • ▼ Show 20 Line(s) | |||||
752 | id: mycroftSkillscolumntab | 752 | id: mycroftSkillscolumntab | ||
753 | visible: tabBar.currentTab == mycroftSkillsTab; | 753 | visible: tabBar.currentTab == mycroftSkillsTab; | ||
754 | anchors.top: root.top | 754 | anchors.top: root.top | ||
755 | anchors.left: sidebar.right | 755 | anchors.left: sidebar.right | ||
756 | anchors.leftMargin: units.gridUnit * 0.25 | 756 | anchors.leftMargin: units.gridUnit * 0.25 | ||
757 | anchors.right: root.right | 757 | anchors.right: root.right | ||
758 | anchors.bottom: root.bottom | 758 | anchors.bottom: root.bottom | ||
759 | 759 | | |||
760 | | ||||
761 | Rectangle { | | |||
762 | anchors.top: mycroftSkillscolumntab.top | | |||
763 | anchors.left: mycroftSkillscolumntab.left | | |||
764 | anchors.right: mycroftSkillscolumntab.right | | |||
765 | id: skillsrectmain | | |||
766 | color: "#00000000" | | |||
767 | | ||||
768 | Component { | | |||
769 | id: skillDelegate | | |||
770 | Rectangle { | | |||
771 | id: skillcontent | | |||
772 | Layout.fillWidth: true; | | |||
773 | anchors { left: parent.left; right: parent.right } | | |||
774 | height: 80 | | |||
775 | border.width: 0 | | |||
776 | border.color: "lightsteelblue" | | |||
777 | radius: 2 | | |||
778 | color: theme.backgroundColor | | |||
779 | z: -99 | | |||
780 | | ||||
781 | RowLayout { | | |||
782 | id: skillTopRowLayout | | |||
783 | spacing: 5 | | |||
784 | anchors.fill: parent | | |||
785 | | ||||
786 | PlasmaComponents.Label { | | |||
787 | id: innerskllname | | |||
788 | anchors.top: parent.top | | |||
789 | anchors.topMargin: 2 | | |||
790 | anchors.left: parent.left | | |||
791 | anchors.right: parent.right | | |||
792 | wrapMode: Text.WordWrap; | | |||
793 | font.bold: true; | | |||
794 | text: i18n('<b>Skill:</b>' + Skill) | | |||
795 | } | | |||
796 | | ||||
797 | Rectangle { | | |||
798 | id: skilltipsimage | | |||
799 | anchors.left: parent.left | | |||
800 | anchors.top: innerskllname.bottom | | |||
801 | anchors.bottom: parent.bottom | | |||
802 | width: units.gridUnit * 1.2 | | |||
803 | color: theme.backgroundColor | | |||
804 | | ||||
805 | Image { | | |||
806 | id: innerskImg | | |||
807 | source: Pic | | |||
808 | width: units.gridUnit * 1.2 | | |||
809 | height: units.gridUnit * 1.2 | | |||
810 | anchors.centerIn: parent | | |||
811 | } | | |||
812 | | ||||
813 | PlasmaCore.SvgItem { | | |||
814 | anchors { | | |||
815 | left: innerskImg.right | | |||
816 | leftMargin: 4 | | |||
817 | top: parent.top | | |||
818 | topMargin: 0 | | |||
819 | bottom: parent.bottom | | |||
820 | bottomMargin: 0 | | |||
821 | } | | |||
822 | | ||||
823 | width: lineskillpgSvg.elementSize("vertical-line").width | | |||
824 | z: 110 | | |||
825 | elementId: "vertical-line" | | |||
826 | | ||||
827 | svg: PlasmaCore.Svg { | | |||
828 | id: lineskillpgSvg; | | |||
829 | imagePath: "widgets/line" | | |||
830 | } | | |||
831 | } | | |||
832 | | ||||
833 | } | | |||
834 | | ||||
835 | Rectangle { | | |||
836 | id: skilltipsinner | | |||
837 | anchors.left: skilltipsimage.right | | |||
838 | anchors.leftMargin: 10 | | |||
839 | anchors.right: parent.right | | |||
840 | color: theme.backgroundColor | | |||
841 | anchors.top: innerskllname.bottom | | |||
842 | anchors.bottom: parent.bottom | | |||
843 | | ||||
844 | Column{ | | |||
845 | id: innerskillscolumn | | |||
846 | spacing: 2 | | |||
847 | | ||||
848 | PlasmaComponents.Label {wrapMode: Text.WordWrap; width: main.width; text: i18n('<b>Command:</b> ' + CommandList.get(0).Commands)} | | |||
849 | PlasmaComponents.Label {wrapMode: Text.WordWrap; width: main.width; text: i18n('<b>Command:</b> ' + CommandList.get(1).Commands)} | | |||
850 | } | | |||
851 | } | | |||
852 | } | | |||
853 | } | | |||
854 | } | | |||
855 | } | | |||
856 | | ||||
857 | ListView { | 760 | ListView { | ||
858 | id: skillslistmodelview | 761 | id: skillslistmodelview | ||
859 | anchors.top: parent.top | 762 | anchors.top: parent.top | ||
860 | anchors.topMargin: 5 | 763 | anchors.topMargin: 5 | ||
861 | anchors.left: parent.left | 764 | anchors.left: parent.left | ||
862 | anchors.right: parent.right | 765 | anchors.right: parent.right | ||
863 | anchors.bottom: parent.bottom | 766 | anchors.bottom: parent.bottom | ||
864 | model: SkillModel{} | 767 | model: SkillModel{} | ||
865 | delegate: skillDelegate | 768 | delegate: SkillView{} | ||
866 | spacing: 4 | 769 | spacing: 4 | ||
867 | focus: false | 770 | focus: false | ||
868 | interactive: true | 771 | interactive: true | ||
869 | clip: true; | 772 | clip: true; | ||
870 | } | 773 | } | ||
871 | 774 | | |||
872 | } | 775 | } | ||
873 | 776 | | |||
▲ Show 20 Lines • Show All 434 Lines • Show Last 20 Lines |