9797 }
9898
9999 NText {
100- text: pluginApi? .tr (" panel.title" ) ?? " Column Layout "
100+ text: pluginApi? .tr (" panel.title" )
101101 pointSize: Style .fontSizeL
102102 font .bold : true
103103 color: Color .mOnSurface
@@ -135,12 +135,12 @@ Item {
135135
136136 Layout .fillWidth : true
137137 Layout .fillHeight : true
138- Layout .minimumHeight : 50
138+ Layout .minimumHeight : Math . round ( 50 * Style . uiScaleRatio )
139139
140140 radius: Style .iRadiusM
141141 color: isSelected ? Qt .alpha (Color .mPrimary , 0.15 ) : Color .mSurfaceVariant
142142 border .color : isSelected ? Color .mPrimary : (optionMouse .containsMouse ? Color .mOutline : " transparent" )
143- border .width : isSelected ? 2 : 1
143+ border .width : isSelected ? Style . borderM : Style . borderS
144144
145145 Behavior on color { ColorAnimation { duration: Style .animationFast } }
146146 Behavior on border .color { ColorAnimation { duration: Style .animationFast } }
@@ -157,18 +157,18 @@ Item {
157157
158158 Row {
159159 anchors .centerIn : parent
160- spacing: 3
160+ spacing: Style . marginXXS
161161
162162 Repeater {
163163 model: layoutOption .columnCount
164164
165165 Rectangle {
166166 width: {
167- const available = layoutOption .width - Style .marginS * 2 - (layoutOption .columnCount - 1 ) * 3 ;
168- return Math .max (8 , available / layoutOption .columnCount );
167+ const available = layoutOption .width - Style .marginS * 2 - (layoutOption .columnCount - 1 ) * Style . marginXXS ;
168+ return Math .max (Math . round ( 8 * Style . uiScaleRatio ) , available / layoutOption .columnCount );
169169 }
170170 height: layoutOption .height * 0.45
171- radius: 3
171+ radius: Style . iRadiusXXXS
172172 color: layoutOption .isSelected
173173 ? Color .mPrimary
174174 : (optionMouse .containsMouse ? Qt .alpha (Color .mOnSurface , 0.4 ) : Qt .alpha (Color .mOnSurface , 0.25 ))
@@ -183,8 +183,8 @@ Item {
183183 NText {
184184 Layout .alignment : Qt .AlignHCenter
185185 text: layoutOption .columnCount === 1
186- ? ( pluginApi? .tr (" panel.single" ) ?? " Single " )
187- : ( pluginApi? .tr (" panel.columns" ) ?? " %1 Columns " ). arg ( layoutOption .columnCount )
186+ ? pluginApi? .tr (" panel.single" )
187+ : pluginApi? .tr (" panel.columns" , { " count " : layoutOption .columnCount } )
188188 pointSize: Style .fontSizeS
189189 font .bold : layoutOption .isSelected
190190 color: layoutOption .isSelected ? Color .mPrimary : Color .mOnSurface
@@ -211,9 +211,9 @@ Item {
211211 spacing: Style .marginS
212212
213213 Rectangle {
214- width: 8
215- height: 8
216- radius: 4
214+ width: Math . round ( 8 * Style . uiScaleRatio )
215+ height: Math . round ( 8 * Style . uiScaleRatio )
216+ radius: Math . round ( 4 * Style . uiScaleRatio )
217217 color: {
218218 if (! root .isEnabled ) return Color .mOutline ;
219219 if (root .isRunning ) return Color .mPrimary ;
@@ -223,15 +223,14 @@ Item {
223223
224224 NText {
225225 text: {
226- if (! root .isEnabled ) return pluginApi? .tr (" panel.status-disabled" ) ?? " Disabled " ;
226+ if (! root .isEnabled ) return pluginApi? .tr (" panel.status-disabled" );
227227 if (root .isRunning ) {
228- const label = (pluginApi? .tr (" panel.status-active" ) ?? " Active — %1 columns" ).arg (root .currentMaxVisible );
229228 if (root .perWorkspace && root .currentWorkspaceId > 0 ) {
230- return label + " (WS " + root .currentWorkspaceId + " ) " ;
229+ return pluginApi ? . tr ( " panel.status-active-ws " , { " count " : root . currentMaxVisible , " ws " : root .currentWorkspaceId }) ;
231230 }
232- return label ;
231+ return pluginApi ? . tr ( " panel.status-active " , { " count " : root . currentMaxVisible }) ;
233232 }
234- return pluginApi? .tr (" panel.status-starting" ) ?? " Starting... " ;
233+ return pluginApi? .tr (" panel.status-starting" );
235234 }
236235 pointSize: Style .fontSizeS
237236 color: Qt .alpha (Color .mOnSurface , 0.6 )
0 commit comments