@@ -15,7 +15,7 @@ export component SourcesDialog inherits Dialog {
1515
1616 VerticalLayout {
1717 spacing : Theme.spacing * 4 ;
18- height : Theme.default-height * 0.6 ;
18+ height : Theme.default-height * 0.5 ;
1919
2020 if Store.audio-sources.length == 0 && Store.video-sources.length == 0 : CenterLayout {
2121 NoDataImg {
@@ -24,7 +24,7 @@ export component SourcesDialog inherits Dialog {
2424 }
2525 }
2626
27- if Store.video -sources.length != 0 : VerticalLayout {
27+ if Store.audio -sources.length != 0 : VerticalLayout {
2828 Rectangle {
2929 background : Theme.thirdly-background;
3030
@@ -35,23 +35,23 @@ export component SourcesDialog inherits Dialog {
3535
3636 IconBtn {
3737 enabled-toucharea : false ;
38- icon : Icons.screen -fill;
38+ icon : Icons.audio -fill;
3939 show-icon-hover-background : false ;
4040 }
4141
4242 SettingDetailLabel {
43- text : Logic.tr("Screen " );
43+ text : Logic.tr("Microphone " );
4444 }
4545 }
4646 }
4747
4848 ListView {
49- for item [index ] in Store.video -sources: Rectangle {
50- background : ta .has-hover ? Theme.checked-background : (Math.mod(index, 2 ) == 0 ? Theme.table-item-first : Theme.table-item-second);
49+ for item [index ] in Store.audio -sources: Rectangle {
50+ background : ta 1 . has-hover ? Theme.checked-background : (Math.mod(index, 2 ) == 0 ? Theme.table-item-first : Theme.table-item-second);
5151
52- ta := TouchArea {
52+ ta1 := TouchArea {
5353 clicked => {
54- root .selected-screen = item;
54+ root .selected-microphone = item;
5555 }
5656 }
5757
@@ -61,9 +61,9 @@ export component SourcesDialog inherits Dialog {
6161 alignment : start;
6262
6363 RadioBtn {
64- checked : root .selected-screen == item;
64+ checked : root .selected-microphone == item;
6565 check => {
66- root .selected-screen = item;
66+ root .selected-microphone = item;
6767 }
6868 }
6969
@@ -76,7 +76,7 @@ export component SourcesDialog inherits Dialog {
7676 }
7777 }
7878
79- if Store.audio -sources.length != 0 : VerticalLayout {
79+ if Store.video -sources.length != 0 : VerticalLayout {
8080 Rectangle {
8181 background : Theme.thirdly-background;
8282
@@ -87,23 +87,23 @@ export component SourcesDialog inherits Dialog {
8787
8888 IconBtn {
8989 enabled-toucharea : false ;
90- icon : Icons.audio -fill;
90+ icon : Icons.screen -fill;
9191 show-icon-hover-background : false ;
9292 }
9393
9494 SettingDetailLabel {
95- text : Logic.tr("Microphone " );
95+ text : Logic.tr("Screen " );
9696 }
9797 }
9898 }
9999
100100 ListView {
101- for item [index ] in Store.audio -sources: Rectangle {
102- background : ta 1 . has-hover ? Theme.checked-background : (Math.mod(index, 2 ) == 0 ? Theme.table-item-first : Theme.table-item-second);
101+ for item [index ] in Store.video -sources: Rectangle {
102+ background : ta .has-hover ? Theme.checked-background : (Math.mod(index, 2 ) == 0 ? Theme.table-item-first : Theme.table-item-second);
103103
104- ta1 := TouchArea {
104+ ta := TouchArea {
105105 clicked => {
106- root .selected-microphone = item;
106+ root .selected-screen = item;
107107 }
108108 }
109109
@@ -113,9 +113,9 @@ export component SourcesDialog inherits Dialog {
113113 alignment : start;
114114
115115 RadioBtn {
116- checked : root .selected-microphone == item;
116+ checked : root .selected-screen == item;
117117 check => {
118- root .selected-microphone = item;
118+ root .selected-screen = item;
119119 }
120120 }
121121
0 commit comments