Skip to content

Commit 384426f

Browse files
author
hexacus
committed
Switch HexWiz accent to teal
1 parent ab1e440 commit 384426f

File tree

21 files changed

+119
-101
lines changed

21 files changed

+119
-101
lines changed

addon.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="plugin.program.hexwiz" name="[COLOR hotpink]Hex[/COLOR]Wiz" version="1.0.6" provider-name="Hexacus">
2+
<addon id="plugin.program.hexwiz" name="[COLOR hotpink]Hex[/COLOR]Wiz" version="1.0.7" provider-name="Hexacus">
33
<requires>
44
<import addon="xbmc.python" version="3.0.0" />
55
<import addon="script.module.requests" />

icon.png

-1.47 MB
Loading

resources/libs/advanced.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def view_current():
3636
def remove_current():
3737
dialog = xbmcgui.Dialog()
3838
ok = dialog.yesno(CONFIG.ADDONTITLE, "[COLOR {0}]Are you sure you want to remove the current advancedsettings.xml?[/COLOR]".format(CONFIG.COLOR2),
39-
yeslabel="[B][COLOR mediumorchid]Yes[/COLOR][/B]",
39+
yeslabel="[B][COLOR teal]Yes[/COLOR][/B]",
4040
nolabel="[B][COLOR red]No[/COLOR][/B]")
4141

4242
if ok:
@@ -262,13 +262,13 @@ def write_advanced(self, name, url):
262262
choice = self.dialog.yesno(CONFIG.ADDONTITLE,
263263
"[COLOR {0}]Would you like to overwrite your current Advanced Settings with [COLOR {1}]{2}[/COLOR]?[/COLOR]".format(
264264
CONFIG.COLOR2, CONFIG.COLOR1, name),
265-
yeslabel="[B][COLOR mediumorchid]Overwrite[/COLOR][/B]",
265+
yeslabel="[B][COLOR teal]Overwrite[/COLOR][/B]",
266266
nolabel="[B][COLOR red]Cancel[/COLOR][/B]")
267267
else:
268268
choice = self.dialog.yesno(CONFIG.ADDONTITLE,
269269
"[COLOR {0}]Would you like to download and install [COLOR {1}]{2}[/COLOR]?[/COLOR]".format(
270270
CONFIG.COLOR2, CONFIG.COLOR1, name),
271-
yeslabel="[B][COLOR mediumorchid]Install[/COLOR][/B]",
271+
yeslabel="[B][COLOR teal]Install[/COLOR][/B]",
272272
nolabel="[B][COLOR red]Cancel[/COLOR][/B]")
273273

274274
if choice == 1:
@@ -284,3 +284,4 @@ def write_advanced(self, name, url):
284284
logging.log("[Advanced Settings] URL not working: {0}".format(url))
285285
logging.log_notify('[COLOR {0}]{1}[/COLOR]'.format(CONFIG.COLOR1, CONFIG.ADDONTITLE),
286286
"[COLOR {0}]URL Not Working[/COLOR]".format(CONFIG.COLOR2))
287+

resources/libs/backup.py

Lines changed: 23 additions & 22 deletions
Large diffs are not rendered by default.

resources/libs/check.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def check_sources():
294294
logging.log("Bad Sources: {0}".format(len(bad)))
295295
if len(bad) > 0:
296296
choice = dialog.yesno(CONFIG.ADDONTITLE, "[COLOR {0}]{1}[/COLOR][COLOR {2}] Source(s) have been found Broken".format(CONFIG.COLOR1, len(bad), CONFIG.COLOR2) + '\n' + "Would you like to Remove all or choose one by one?[/COLOR]",
297-
yeslabel="[B][COLOR mediumorchid]Remove All[/COLOR][/B]",
297+
yeslabel="[B][COLOR teal]Remove All[/COLOR][/B]",
298298
nolabel="[B][COLOR red]Choose to Delete[/COLOR][/B]")
299299
if choice == 1:
300300
remove = bad
@@ -303,7 +303,7 @@ def check_sources():
303303
logging.log("{0} sources: {1}, {2}".format(name, path, working))
304304
if dialog.yesno(CONFIG.ADDONTITLE,
305305
"[COLOR {0}]{1}[/COLOR][COLOR {2}] was reported as non working".format(CONFIG.COLOR1, name, CONFIG.COLOR2) + '\n' + "[COLOR {0}]{1}[/COLOR]".format(CONFIG.COLOR1, path) + '\n' + "[COLOR {0}]{1}[/COLOR]".format(CONFIG.COLOR1, working),
306-
yeslabel="[B][COLOR mediumorchid]Remove Source[/COLOR][/B]",
306+
yeslabel="[B][COLOR teal]Remove Source[/COLOR][/B]",
307307
nolabel="[B][COLOR red]Keep Source[/COLOR][/B]"):
308308
remove.append([name, path, sharing, working])
309309
logging.log("Removing Source {0}".format(name))
@@ -411,3 +411,4 @@ def build_count():
411411
return total, countkodi, adultcount, hidden
412412

413413

414+

resources/libs/clear.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def clear_packages(over=None):
155155
else:
156156
dialog = xbmcgui.Dialog()
157157

158-
yes = dialog.yesno("[COLOR {0}]Delete Package Files[/COLOR]".format(CONFIG.COLOR2), "[COLOR {0}]{1}[/COLOR] files found / [COLOR {2}]{3}[/COLOR] in size.".format(CONFIG.COLOR1, str(file_count),CONFIG.COLOR1, size) + '\n' + "Do you want to delete them?", nolabel='[B][COLOR red]Don\'t Clear[/COLOR][/B]', yeslabel='[B][COLOR mediumorchid]Clear Packages[/COLOR][/B]')
158+
yes = dialog.yesno("[COLOR {0}]Delete Package Files[/COLOR]".format(CONFIG.COLOR2), "[COLOR {0}]{1}[/COLOR] files found / [COLOR {2}]{3}[/COLOR] in size.".format(CONFIG.COLOR1, str(file_count),CONFIG.COLOR1, size) + '\n' + "Do you want to delete them?", nolabel='[B][COLOR red]Don\'t Clear[/COLOR][/B]', yeslabel='[B][COLOR teal]Clear Packages[/COLOR][/B]')
159159
if yes:
160160
for f in files:
161161
os.unlink(os.path.join(root, f))
@@ -222,7 +222,7 @@ def clear_archive():
222222
if dialog.yesno(CONFIG.ADDONTITLE,
223223
'[COLOR {0}]Would you like to clear the \'Archive_Cache\' folder?[/COLOR]'.format(CONFIG.COLOR2),
224224
nolabel='[B][COLOR red]No, Cancel[/COLOR][/B]',
225-
yeslabel='[B][COLOR mediumorchid]Yes Clear[/COLOR][/B]'):
225+
yeslabel='[B][COLOR teal]Yes Clear[/COLOR][/B]'):
226226
if os.path.exists(CONFIG.ARCHIVE_CACHE):
227227
from resources.libs.common import tools
228228
tools.clean_house(CONFIG.ARCHIVE_CACHE)
@@ -235,7 +235,7 @@ def clear_function_cache(over=False):
235235
if dialog.yesno(CONFIG.ADDONTITLE,
236236
'[COLOR {0}]Would you like to clear resolver function caches?[/COLOR]'.format(CONFIG.COLOR2),
237237
nolabel='[B][COLOR red]No, Cancel[/COLOR][/B]',
238-
yeslabel='[B][COLOR mediumorchid]Clear Cache[/COLOR][/B]'):
238+
yeslabel='[B][COLOR teal]Clear Cache[/COLOR][/B]'):
239239
clear = True
240240
else:
241241
clear = True
@@ -464,7 +464,7 @@ def clear_crash():
464464
if dialog.yesno(CONFIG.ADDONTITLE,
465465
'[COLOR {0}]Would you like to delete the Crash logs?'.format(CONFIG.COLOR2)
466466
+'\n'+'[COLOR {0}]{1}[/COLOR] Files Found[/COLOR]'.format(CONFIG.COLOR1, len(files)),
467-
yeslabel="[B][COLOR mediumorchid]Remove Logs[/COLOR][/B]",
467+
yeslabel="[B][COLOR teal]Remove Logs[/COLOR][/B]",
468468
nolabel="[B][COLOR red]Keep Logs[/COLOR][/B]"):
469469
for f in files:
470470
os.remove(f)
@@ -512,7 +512,7 @@ def total_clean():
512512
if dialog.yesno(CONFIG.ADDONTITLE,
513513
'[COLOR {0}]Would you like to clear cache, packages and thumbnails?[/COLOR]'.format(CONFIG.COLOR2),
514514
nolabel='[B][COLOR red]Cancel Process[/COLOR][/B]',
515-
yeslabel='[B][COLOR mediumorchid]Clean All[/COLOR][/B]'):
515+
yeslabel='[B][COLOR teal]Clean All[/COLOR][/B]'):
516516
clear_archive()
517517
clear_cache()
518518
clear_function_cache(over=True)
@@ -533,7 +533,7 @@ def clear_thumbs(type=None):
533533
if type is not None:
534534
choice = 1
535535
else:
536-
choice = dialog.yesno(CONFIG.ADDONTITLE, '[COLOR {0}]Would you like to delete the {1} and related thumbnail folders?'.format(CONFIG.COLOR2, latest) + '\n' + "They will repopulate on the next startup[/COLOR]", nolabel='[B][COLOR red]Don\'t Delete[/COLOR][/B]', yeslabel='[B][COLOR mediumorchid]Delete Thumbs[/COLOR][/B]')
536+
choice = dialog.yesno(CONFIG.ADDONTITLE, '[COLOR {0}]Would you like to delete the {1} and related thumbnail folders?'.format(CONFIG.COLOR2, latest) + '\n' + "They will repopulate on the next startup[/COLOR]", nolabel='[B][COLOR red]Don\'t Delete[/COLOR][/B]', yeslabel='[B][COLOR teal]Delete Thumbs[/COLOR][/B]')
537537
if choice == 1:
538538
try:
539539
tools.remove_file(os.path.join(CONFIG.DATABASE, latest))
@@ -561,7 +561,7 @@ def remove_addon(addon, name, over=False, data=True):
561561
'[COLOR {0}]Are you sure you want to delete the add-on:'.format(CONFIG.COLOR2)
562562
+'\n'+'Name: [COLOR {0}]{1}[/COLOR]'.format(CONFIG.COLOR1, name)
563563
+'\n'+'ID: [COLOR {0}]{1}[/COLOR][/COLOR]'.format(CONFIG.COLOR1, addon),
564-
yeslabel='[B][COLOR mediumorchid]Remove Add-on[/COLOR][/B]',
564+
yeslabel='[B][COLOR teal]Remove Add-on[/COLOR][/B]',
565565
nolabel='[B][COLOR red]Don\'t Remove[/COLOR][/B]')
566566
if yes == 1:
567567
folder = os.path.join(CONFIG.ADDONS, addon)
@@ -601,7 +601,7 @@ def remove_addon_data(addon):
601601
if addon == 'all': # clear ALL addon data
602602
if dialog.yesno(CONFIG.ADDONTITLE,
603603
'[COLOR {0}]Would you like to remove [COLOR {1}]ALL[/COLOR] addon data stored in your userdata folder?[/COLOR]'.format(CONFIG.COLOR2, CONFIG.COLOR1),
604-
yeslabel='[B][COLOR mediumorchid]Remove Data[/COLOR][/B]',
604+
yeslabel='[B][COLOR teal]Remove Data[/COLOR][/B]',
605605
nolabel='[B][COLOR red]Don\'t Remove[/COLOR][/B]'):
606606
tools.clean_house(CONFIG.ADDON_DATA)
607607
else:
@@ -610,7 +610,7 @@ def remove_addon_data(addon):
610610
elif addon == 'uninstalled': # clear addon data for uninstalled addons
611611
if dialog.yesno(CONFIG.ADDONTITLE,
612612
'[COLOR {0}]Would you like to remove [COLOR {1}]ALL[/COLOR] addon data stored in your userdata folder for uninstalled addons?[/COLOR]'.format(CONFIG.COLOR2, CONFIG.COLOR1),
613-
yeslabel='[B][COLOR mediumorchid]Remove Data[/COLOR][/B]',
613+
yeslabel='[B][COLOR teal]Remove Data[/COLOR][/B]',
614614
nolabel='[B][COLOR red]Don\'t Remove[/COLOR][/B]'):
615615

616616
total = 0
@@ -634,7 +634,7 @@ def remove_addon_data(addon):
634634
elif addon == 'empty': # clear empty folders from addon_data
635635
if dialog.yesno(CONFIG.ADDONTITLE,
636636
'[COLOR {0}]Would you like to remove [COLOR {1}]ALL[/COLOR] empty addon data folders in your userdata folder?[/COLOR]'.format(CONFIG.COLOR2, CONFIG.COLOR1),
637-
yeslabel='[B][COLOR mediumorchid]Remove Data[/COLOR][/B]',
637+
yeslabel='[B][COLOR teal]Remove Data[/COLOR][/B]',
638638
nolabel='[B][COLOR red]Don\'t Remove[/COLOR][/B]'):
639639
total = tools.empty_folder(CONFIG.ADDON_DATA)
640640
logging.log_notify('[COLOR {0}]Remove Empty Folders[/COLOR]'.format(CONFIG.COLOR1),
@@ -648,7 +648,7 @@ def remove_addon_data(addon):
648648
logging.log_notify("[COLOR {0}]Protected Plugin[/COLOR]".format(CONFIG.COLOR1),
649649
"[COLOR {0}]Not allowed to remove add-on data[/COLOR]".format(CONFIG.COLOR2))
650650
elif os.path.exists(addon_data):
651-
if dialog.yesno(CONFIG.ADDONTITLE, '[COLOR {0}]Would you also like to remove the add-on data for:[/COLOR]'.format(CONFIG.COLOR2) + '\n' + '[COLOR {0}]{1}[/COLOR]'.format(CONFIG.COLOR1, addon), yeslabel='[B][COLOR mediumorchid]Remove Data[/COLOR][/B]', nolabel='[B][COLOR red]Don\'t Remove[/COLOR][/B]'):
651+
if dialog.yesno(CONFIG.ADDONTITLE, '[COLOR {0}]Would you also like to remove the add-on data for:[/COLOR]'.format(CONFIG.COLOR2) + '\n' + '[COLOR {0}]{1}[/COLOR]'.format(CONFIG.COLOR1, addon), yeslabel='[B][COLOR teal]Remove Data[/COLOR][/B]', nolabel='[B][COLOR red]Don\'t Remove[/COLOR][/B]'):
652652
tools.clean_house(addon_data)
653653
try:
654654
shutil.rmtree(addon_data)
@@ -713,3 +713,4 @@ def remove_addon_menu():
713713

714714
update.addon_updates('reset')
715715
tools.kill_kodi(over=True)
716+

resources/libs/common/tools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def kill_kodi(msg=None, over=None):
420420
choice = dialog.yesno('Force Close Kodi',
421421
msg,
422422
nolabel='[B][COLOR red] No Cancel[/COLOR][/B]',
423-
yeslabel='[B][COLOR mediumorchid]Force Close Kodi[/COLOR][/B]')
423+
yeslabel='[B][COLOR teal]Force Close Kodi[/COLOR][/B]')
424424
if choice == 1:
425425
from resources.libs.common import logging
426426
logging.log("Force Closing Kodi: Platform[{0}]".format(str(platform())))
@@ -548,7 +548,7 @@ def ascii_check(use=None, over=False):
548548
else:
549549
yes = dialog.yesno(CONFIG.ADDONTITLE,
550550
'[COLOR {0}]Do you want to [COLOR {1}]delete[/COLOR] all filenames with special characters or would you rather just [COLOR {2}]scan and view[/COLOR] the results in the log?[/COLOR]'.format(CONFIG.COLOR2, CONFIG.COLOR1, CONFIG.COLOR1),
551-
yeslabel='[B][COLOR mediumorchid]Delete[/COLOR][/B]',
551+
yeslabel='[B][COLOR teal]Delete[/COLOR][/B]',
552552
nolabel='[B][COLOR red]Scan[/COLOR][/B]')
553553
else:
554554
source = use
@@ -752,3 +752,4 @@ def open_url(url, stream=False, check=False, cred=None, count=0):
752752
return False
753753

754754
return response
755+

resources/libs/db.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def toggle_dependency(name, dp=None):
303303
#
304304
# do = gui.DIALOG.yesno(CONFIG.ADDONTITLE,
305305
# "[COLOR {0}]Would you like to [COLOR {1}]Enable[/COLOR] or [COLOR {2}]Disable[/COLOR] all Adult add-ons?[/COLOR]".format(CONFIG.COLOR2, CONFIG.COLOR1, CONFIG.COLOR1),
306-
# yeslabel="[B][COLOR mediumorchid]Enable[/COLOR][/B]",
306+
# yeslabel="[B][COLOR teal]Enable[/COLOR][/B]",
307307
# nolabel="[B][COLOR red]Disable[/COLOR][/B]")
308308
# state = 'true' if do == 1 else 'false'
309309
# goto = 'Enabling' if do == 1 else 'Disabling'
@@ -319,7 +319,7 @@ def toggle_dependency(name, dp=None):
319319
# if len(found) > 0:
320320
# if gui.DIALOG.yesno(CONFIG.ADDONTITLE,
321321
# "[COLOR {0}]Would you like to view a list of the add-ons that where {1}?[/COLOR]".format(CONFIG.COLOR2, goto.replace('ing', 'ed')),
322-
# yeslabel="[B][COLOR mediumorchid]View List[/COLOR][/B]",
322+
# yeslabel="[B][COLOR teal]View List[/COLOR][/B]",
323323
# nolabel="[B][COLOR red]Cancel[/COLOR][/B]"):
324324
# editlist = '[CR]'.join(found)
325325
# gui.show_text_box(CONFIG.ADDONTITLE,
@@ -368,7 +368,7 @@ def fix_metas():
368368
#
369369
# if dialog.yesno(CONFIG.ADDONTITLE,
370370
# "[COLOR {0}]Would you like to [COLOR {1}]hide[/COLOR] all passwords when typing in the add-on settings menus?[/COLOR]".format(CONFIG.COLOR2),
371-
# yeslabel="[B][COLOR mediumorchid]Hide Passwords[/COLOR][/B]",
371+
# yeslabel="[B][COLOR teal]Hide Passwords[/COLOR][/B]",
372372
# nolabel="[B][COLOR red]No Cancel[/COLOR][/B]"):
373373
# count = 0
374374
# for folder in glob.glob(os.path.join(CONFIG.ADDONS, '*/')):
@@ -402,7 +402,7 @@ def fix_metas():
402402
#
403403
# if dialog.yesno(CONFIG.ADDONTITLE,
404404
# "[COLOR {0}]Would you like to [COLOR {1}]unhide[/COLOR] all passwords when typing in the add-on settings menus?[/COLOR]".format(CONFIG.COLOR2, CONFIG.COLOR1),
405-
# yeslabel="[B][COLOR mediumorchid]Unhide Passwords[/COLOR][/B]",
405+
# yeslabel="[B][COLOR teal]Unhide Passwords[/COLOR][/B]",
406406
# nolabel="[B][COLOR red]No Cancel[/COLOR][/B]"):
407407
# count = 0
408408
# for folder in glob.glob(os.path.join(CONFIG.ADDONS, '*/')):
@@ -528,4 +528,4 @@ def find_binary_addons(addon='all'):
528528
if attr.startswith('library_'):
529529
return addonid, addonname
530530

531-
return None, None
531+
return None, None

resources/libs/debridit.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,9 @@ def auto_update(who):
448448

449449
if dialog.yesno(CONFIG.ADDONTITLE,
450450
"Would you like to save the [COLOR {0}]Debrid Info[/COLOR] for [COLOR {1}]{2}[/COLOR]?".format(CONFIG.COLOR2, CONFIG.COLOR1, n)
451-
+'\n'+"Addon: [COLOR mediumorchid][B]{0}[/B][/COLOR]".format(u)
451+
+'\n'+"Addon: [COLOR teal][B]{0}[/B][/COLOR]".format(u)
452452
+'\n'+"Saved:[/COLOR] [COLOR red][B]{0}[/B][/COLOR]".format(su) if not su == '' else 'Saved:[/COLOR] [COLOR red][B]None[/B][/COLOR]',
453-
yeslabel="[B][COLOR mediumorchid]Save Debrid[/COLOR][/B]",
453+
yeslabel="[B][COLOR teal]Save Debrid[/COLOR][/B]",
454454
nolabel="[B][COLOR red]No, Cancel[/COLOR][/B]"):
455455
debrid_it('update', who)
456456
else:
@@ -509,3 +509,4 @@ def activate_debrid(who):
509509
check += 1
510510
time.sleep(10)
511511
xbmc.executebuiltin('Container.Refresh()')
512+

resources/libs/gui/addon_menu.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def show_menu(self, url=None):
169169
try:
170170
add = tools.get_addon_info(plugin, 'path')
171171
if os.path.exists(add):
172-
addonname = "[COLOR mediumorchid][Installed][/COLOR] {0}".format(addonname)
172+
addonname = "[COLOR teal][Installed][/COLOR] {0}".format(addonname)
173173
except:
174174
pass
175175

@@ -439,3 +439,4 @@ def install_skin(self, name, url):
439439
CONFIG.set_setting('defaultskinignore', 'true')
440440
skin.switch_to_skin(item, 'Skin Installer')
441441
xbmc.executebuiltin('Container.Refresh()')
442+

0 commit comments

Comments
 (0)