Skip to content

Commit

Permalink
Added disabled image for 2.4/5 GHz toggle switch for visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
erinharrington-12 committed Nov 18, 2024
1 parent 3fc03a5 commit f48a2bc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions rc/qml.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<file>qml/loading.qml</file>
<file>qml/lock.qml</file>
<file>qml/50-screenlock.png</file>
<file>qml/disabled.png</file>
<file>qml/left.png</file>
<file>qml/right.png</file>
<file>qml/Event_Mode_Background.png</file>
Expand Down
Binary file added rc/qml/disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions ui/AboutWidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@
</item>
<item>
<widget class="QCheckBox" name="toggleSwitch">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
Expand Down
11 changes: 10 additions & 1 deletion ui/NetworkSettingsWidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,16 @@ QCheckBox::indicator:checked{

QCheckBox::indicator:unchecked{
image:url(&quot;://qml/left.png&quot;);
}</string>
}

QCheckBox::indicator:disabled:checked {
image: url(&quot;://qml/disabled.png&quot;);
}

QCheckBox::indicator:disabled:unchecked {
image: url(&quot;://qml/disabled.png&quot;);
}
</string>
</property>
<property name="text">
<string/>
Expand Down

0 comments on commit f48a2bc

Please sign in to comment.