Browse Source

The default theme is now 100% ES6. A lot of code cleanup and improvements were done along the way. Greeter is now fully functional under QtWebEngine. Still have to organize the repo and decide whether or not to ship a compiled binary using Nuitka (has been working well in my testing thus far).

sisyphus
Dustin Falgout 8 years ago
parent
commit
c44637f511
  1. 7
      themes/antergos/index.html
  2. 687
      themes/antergos/js/greeter.js
  3. 2
      web-greeter/bridge/ThemeUtils.py
  4. 2
      web-greeter/greeter.py
  5. 2
      web-greeter/resources/js/ThemeUtils.js

7
themes/antergos/index.html

@ -240,13 +240,12 @@
} );
$( '#collapseTwo' ).on( 'shown.bs.collapse', function() {
$( '#collapseTwo a' ).filter( ':not(.dropdown-menu *)' ).each( function( index ) {
var i = index + 1;
$( this ).attr( 'tabindex', i );
$(this).find( 'a' ).filter( ':not(.dropdown-menu *)' ).each( function( index ) {
$( this ).attr( 'tabindex', index + 1 );
} );
} );
$( '#collapseTwo' ).on( 'hidden.bs.collapse', function() {
$( '#collapseTwo a' ).filter( ':not(.dropdown-menu *)' ).each( function( index ) {
$(this).find( 'a' ).filter( ':not(.dropdown-menu *)' ).each( function( index ) {
$( this ).attr( 'tabindex', -1 );
} );
} );

687
themes/antergos/js/greeter.js

File diff suppressed because it is too large Load Diff

2
web-greeter/bridge/ThemeUtils.py

@ -47,7 +47,7 @@ class ThemeUtils(BridgeObject):
self._user_config = user_config
self._greeter = greeter
@bridge.method(str, bool, name='dirlist', result=Variant)
@bridge.method(str, bool, result=Variant)
def dirlist(self, dir_path, only_images=True):
if not dir_path or not isinstance(dir_path, str):
return []

2
web-greeter/greeter.py

@ -54,7 +54,7 @@ class WebGreeter(App):
user_config = AttributeDict({})
def __init__(self, *args, **kwargs):
super().__init__('WebGreeter', config_file=CONFIG_FILE, debug=False, *args, **kwargs)
super().__init__('WebGreeter', config_file=CONFIG_FILE, debug=True, *args, **kwargs)
self.get_and_save_user_config()
self.greeter = Greeter(self.config.themes_dir)

2
web-greeter/resources/js/ThemeUtils.js

@ -93,6 +93,8 @@ class ThemeUtils {
}
}
}
return context;
}

Loading…
Cancel
Save