Merge pull request #221 from Freaku17/main

Update icons_keyboard.py
This commit is contained in:
! Freaku 2023-12-28 13:31:27 +05:30 committed by GitHub
commit bcbad70ce7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 2 deletions

View file

@ -1,5 +1,9 @@
## Plugin Manager (dd-mm-yyyy)
### 1.0.6 (26-12-2023)
- Fixed plugin manager throwing errors on older builds
### 1.0.5 (11-12-2023)
- Fix a typo.

View file

@ -607,6 +607,12 @@
}
],
"versions": {
"3.0.1": {
"api_version": 8,
"commit_sha": "78f3c44",
"released_on": "27-12-2023",
"md5sum": "b7756605a4bc382329c078c4e399b96b"
},
"3.0.0": {
"api_version": 8,
"commit_sha": "02da437",

View file

@ -9,6 +9,7 @@
# ba_meta require api 8
import bauiv1
import babase
from babase import charstr
@ -20,8 +21,7 @@ for i in range(26 - (len(list_of_icons) % 26)):
list_of_icons.append('')
# ba_meta export keyboard
class IconKeyboard(babase.Keyboard):
class IconKeyboard(babase.Keyboard if hasattr(babase, 'Keyboard') else bauiv1.Keyboard):
"""Keyboard go brrrrrrr"""
name = 'Icons by \ue048Freaku'
chars = [(list_of_icons[0:10]),
@ -32,3 +32,10 @@ class IconKeyboard(babase.Keyboard):
f'icon{i//26+1}': tuple(list_of_icons[i:i+26])
for i in range(26, len(list_of_icons), 26)
}
# ba_meta export plugin
class byFreaku(babase.Plugin):
def __init__(self):
babase.app.meta.scanresults.exports['babase.Keyboard' if hasattr(
babase, 'Keyboard') else 'bauiv1.Keyboard'].append(__name__+'.IconKeyboard')