Skip to content

Commit

Permalink
Merge pull request #221 from Freaku17/main
Browse files Browse the repository at this point in the history
Update icons_keyboard.py
  • Loading branch information
Freaku17 authored Dec 28, 2023
2 parents a98d8a2 + 0eaa5e9 commit bcbad70
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 6 additions & 0 deletions plugins/utilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 9 additions & 2 deletions plugins/utilities/icons_keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# ba_meta require api 8

import bauiv1
import babase
from babase import charstr

Expand All @@ -20,8 +21,7 @@
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]),
Expand All @@ -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')

0 comments on commit bcbad70

Please sign in to comment.