Skip to content

Commit

Permalink
Update to v0.2.5
Browse files Browse the repository at this point in the history
Beginnings of translations. Already added Polish translation.
  • Loading branch information
AnonymousX86 committed May 20, 2020
1 parent 7d36f68 commit d93c0fa
Show file tree
Hide file tree
Showing 8 changed files with 490 additions and 130 deletions.
11 changes: 11 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

This file contains changes made to **Python Password** program.

## [0.2.5] - 2020-05-XX
### Added
- Translation option.
- Polish locale.
- Safer theme changing.
### Changed
- New icon.
### Fixed
- Two tries to access settings.

## [0.2.4] - 2020-05-19
### Added
- Chosen theme is now saving.
Expand Down Expand Up @@ -60,6 +70,7 @@ First usable pre-release.
- Set password option.
- Get password option.

[0.2.5]: https://github.com/AnonymousX86/Python-Password/releases/tag/v0.2.5-alpha
[0.2.4]: https://github.com/AnonymousX86/Python-Password/releases/tag/v0.2.4-alpha
[0.2.3]: https://github.com/AnonymousX86/Python-Password/releases/tag/v0.2.3-alpha
[0.2.2]: https://github.com/AnonymousX86/Python-Password/releases/tag/v0.2.2-alpha
Expand Down
274 changes: 188 additions & 86 deletions python_password/PyPassword.py

Large diffs are not rendered by default.

118 changes: 79 additions & 39 deletions python_password/kv_templates/PyPassword.kv
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
spacing: 15

MDLabel:
text: 'Python Password'
text: app.info['name']
font_style: 'Button'
theme_text_color: 'Primary'
size_hint_y: None
Expand All @@ -25,25 +25,34 @@

OneLineIconListItem:
icon_color: 'black'
text: 'Passwords'
text: app.tr('passwords')
on_press: root.change_screen('passwords')
IconLeftWidget:
icon: 'shield-lock-outline'

OneLineIconListItem:
text: 'Settings'
text: app.tr('settings')
on_press: root.change_screen('settings')
IconLeftWidget:
icon: 'cogs'

OneLineIconListItem:
text: 'Info'
text: app.tr('info')
on_press: root.change_screen('info')
IconLeftWidget:
icon: 'information-outline'

MDRoundFlatIconButton:
text: 'Switch theme'
text: app.tr('language')
size_hint_x: 1
background_palette: 'Primary'
text_color: app.text_color_rgba
icon: 'flag-outline'
on_release: root.change_screen('languages')

MDRoundFlatIconButton:
text: app.tr('switch_theme')
size_hint_x: 1
background_palette: 'Primary'
text_color: app.text_color_rgba
icon: 'theme-light-dark'
Expand All @@ -56,7 +65,7 @@
Screen:
MDToolbar:
id: toolbar
title: 'Python Password'
title: app.info['name']
pos_hint: {'top': 1}
elevation: 10
left_action_items: [['menu', lambda x: nav_drawer.set_state('open')]]
Expand Down Expand Up @@ -94,8 +103,8 @@ Screen:

MDTextField:
id: password_alias
hint_text: 'Password alias'
helper_text: '3+ characters long.'
hint_text: app.tr('password_alias')
helper_text: app.tr('x_characters_long', txt_format='3')
helper_text_mode: 'on_error'
mode: 'rectangle'
required: False
Expand All @@ -104,8 +113,8 @@ Screen:

MDTextField:
id: password_value
hint_text: 'Password value'
helper_text: '6+ characters long.'
hint_text: app.tr('password_value')
helper_text: app.tr('x_characters_long', txt_format='6')
helper_text_mode: 'on_error'
mode: 'rectangle'
required: False
Expand All @@ -114,16 +123,16 @@ Screen:

MDFillRoundFlatIconButton:
size_hint_x: 1
text: 'Add password'
text: app.tr('save_password')
icon: 'key-plus'
on_press: app.add_password()

MDSeparator:

MDTextField:
id: del_password_alias
hint_text: 'Password alias'
helper_text: '3+ characters long.'
hint_text: app.tr('password_alias')
helper_text: app.tr('x_characters_long', txt_format='3')
helper_text_mode: 'on_error'
mode: 'rectangle'
required: False
Expand All @@ -132,7 +141,7 @@ Screen:

MDFillRoundFlatIconButton:
size_hint_x: 1
text: 'Remove password'
text: app.tr('remove_password')
icon: 'key-minus'
on_release: app.del_password()

Expand All @@ -149,7 +158,7 @@ Screen:

MDFillRoundFlatIconButton:
size_hint_x: 1
text: 'Refresh'
text: app.tr('refresh')
icon: 'refresh'
on_release: app.update_passwords_list()

Expand All @@ -167,7 +176,7 @@ Screen:
BoxLayout:

MDLabel:
text: 'Change alpha password'
text: app.tr('change_master', txt_format=app.tr('alpha'))
theme_text_color: 'Primary'
halign: 'center'

Expand All @@ -177,8 +186,8 @@ Screen:

MDTextField:
id: alpha_change
hint_text: 'New alpha password'
helper_text: '6+ characters long.'
hint_text: app.tr('new_master', txt_format=app.tr('alpha'))
helper_text: app.tr('x_characters_long', txt_format='6')
helper_text_mode: 'on_error'
mode: 'rectangle'
required: False
Expand All @@ -192,13 +201,13 @@ Screen:

MDFillRoundFlatIconButton:
id: btn_alpha_change
text: 'Save'
text: app.tr('save')
icon: 'checkbox-marked-outline'
on_release: app.change_master('alpha')

MDFillRoundFlatIconButton:
id: btn_alpha_reset
text: 'Reset'
text: app.tr('reset')
icon: 'lock-reset'
on_release: app.reset_alpha()

Expand All @@ -207,7 +216,7 @@ Screen:
BoxLayout:

MDLabel:
text: 'Change beta password'
text: app.tr('change_master', txt_format=app.tr('beta'))
theme_text_color: 'Primary'
halign: 'center'

Expand All @@ -217,8 +226,8 @@ Screen:

MDTextField:
id: beta_change
hint_text: 'New beta password'
helper_text: '6+ characters long.'
hint_text: app.tr('new_master', txt_format=app.tr('beta'))
helper_text: app.tr('x_characters_long', txt_format='6')
helper_text_mode: 'on_error'
mode: 'rectangle'
required: False
Expand All @@ -231,12 +240,12 @@ Screen:
spacing: 15

MDFillRoundFlatIconButton:
text: 'Save'
text: app.tr('save')
icon: 'checkbox-marked-outline'
on_release: app.change_master('beta')

MDFillRoundFlatIconButton:
text: 'Reset'
text: app.tr('reset')
icon: 'lock-reset'
on_release: app.reset_beta()

Expand All @@ -249,12 +258,12 @@ Screen:
Widget:

MDFillRoundFlatIconButton:
text: 'Export backup'
text: app.tr('export_backup')
icon: 'database-export'
on_release: app.backup_export()

MDFillRoundFlatIconButton:
text: 'Import backup'
text: app.tr('import_backup')
icon: 'database-import'
on_release: app.backup_import()

Expand All @@ -276,7 +285,7 @@ Screen:
orientation: 'vertical'

MDLabel:
text: 'About the program'
text: app.tr('about')
theme_text_color: 'Primary'
size_hint: (1, None)
height: '30dp'
Expand All @@ -287,34 +296,34 @@ Screen:

TwoLineListItem:
text: app.info['name']
secondary_text: 'Name'
secondary_text: app.tr('name')
on_release: app.detailed_info('name')

TwoLineListItem:
text: app.info['version']
secondary_text: 'Version'
secondary_text: app.tr('version')
on_release: app.detailed_info('version')

TwoLineListItem:
text: app.info['author']
secondary_text: 'Author'
secondary_text: app.tr('author')
on_release: app.detailed_info('author')

TwoLineListItem:
text: app.info['icon']
secondary_text: 'Program icon'
secondary_text: app.tr('icon')
on_release: app.detailed_info('icon')

TwoLineListItem:
text: app.info['rd_party']
secondary_text: '3rd party software'
on_release: app.detailed_info('rd_party')
text: app.info['3rd_party']
secondary_text: app.tr('3rd_party')
on_release: app.detailed_info('3rd_party')

BoxLayout:
orientation: 'vertical'

MDLabel:
text: 'Useful links'
text: app.tr('links')
theme_text_color: 'Primary'
size_hint: (1, None)
height: '30dp'
Expand All @@ -324,29 +333,60 @@ Screen:
MDList:

TwoLineAvatarListItem:
text: 'GitHub repository'
text: app.tr('github')
secondary_text: ' '
on_release: app.open_url(app.info['github'])

IconLeftWidget:
icon: 'github-circle'

TwoLineAvatarListItem:
text: 'FAQ'
text: app.tr('faq')
secondary_text: ' '
on_release: app.open_url(app.info['faq'])

IconLeftWidget:
icon: 'comment-question-outline'

TwoLineAvatarIconListItem:
text: 'Mail'
text: app.tr('mail')
secondary_text: ' '
on_release: app.open_url(app.info['mail'])

IconLeftWidget:
icon: 'email-outline'

Screen:
name: 'languages'

BoxLayout:
size_hint: (1, None)
height: root.height - toolbar.height
orientation: 'vertical'
spacing: 30
padding: (150, 45)

MDLabel:
text: app.tr('available_languages')
theme_text_color: 'Primary'
size_hint_y: None
halign: 'center'
valign: 'middle'
height: 14

MDSeparator:

ScrollView:
MDList:
id: languages_list

MDSeparator:

MDFillRoundFlatIconButton:
text: app.tr('add_language')
icon: 'flag-plus-outline'
on_release: app.add_language()

MDNavigationDrawer:
md_bg_color: app.theme_cls.bg_dark
id: nav_drawer
Expand Down
Empty file.
Loading

0 comments on commit d93c0fa

Please sign in to comment.