-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connections: fix layout as some icons were off screen #54
Conversation
Looks good! Having just reviewed the code for the Connections list from what I see it appears we don't have an "unlocked padlock" security icon for insecure connections - would it be a good idea to add that, otherwise I think we'll just show no security icon at all (which isn't terribly helpful if it's the only connection and/or the user isn't familiar with the security icons that can be shown for a WiFi connection). Not related to the connections, but @chewitt pointed out the main menu items are not centred vertically - for example, the highlighted Connections menu entry in the screenshots above is vertically positioned slightly above centre. |
Thanks for making these changes, although the |
@MilhouseVH thanks I've added a couple commits here is the menu alignment now and the lock/unlock symbol (currently waiting for unlock photo to be made): PS. the lock/unlock doesn't seem like it was ever working right, because the object is passed as an array. ie: to verify please test this simple script output should be like
|
current look with fixed up icons from @chewitt |
0a6057b
to
b8e8ca5
Compare
@@ -806,7 +806,12 @@ def menu_connections(self, focusItem, services={}, removed={}, force=False): | |||
if properties[prop]['type'] == 2: | |||
result = unicode(result) | |||
if properties[prop]['type'] == 3: | |||
result = unicode(len(result)) | |||
if ('psk' or 'wep' or 'ieee8021x') in result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test isn't working as intended - it will only return true for psk
:
result=['ieee8021x','wep']
if ('psk' or 'wep' or 'ieee8021x') in result:
print("yes")
else:
print("no")
will print no
Perfect! :) |
df3b2a6
to
4938b1f
Compare
This is much better. If someone would like me to move things around more let me know.
before:
after: