scriptFilename = 'sethighlightcolor.py' defaultColorName = 'blue' defaultColorStr = '61,174,230' def printHelp(): print("python3 {} [red],[green],[blue]".format(scriptFilename)) print("\t[red/green/blue] are integers from 0-255") print("\tEg: python3 {} {}".format(scriptFilename, defaultColorStr)) if __name__ == '__main__': if len(sys.argv) >= 2: try: r, g, b = map(int, sys.argv[1].split(',')) newColor = "{},{},{}".format(r, g, b) desktopTheme = BreezeAlphaBlack() desktopTheme.setHighlightColor(newColor) except Exception as e: print(e) printHelp() sys.exit(0) else: printHelp() print() print("No color given. Using the default {} ({}).".format( defaultColorStr, defaultColorName)) desktopTheme = BreezeAlphaBlack() desktopTheme.setHighlightColor(defaultColorStr)
#!/usr/bin/python3 import sys, os from desktoptheme import BreezeAlphaBlack def printHelp(): print("python3 setdialogopacity.py [opacity]") print("\t[opacity] is a real number from 0.0 to 1.0") print("\tEg: python3 setdialogopacity.py 0.6") if __name__ == '__main__': if len(sys.argv) >= 2: try: desktopTheme = BreezeAlphaBlack() desktopTheme.setDialogOpacity(sys.argv[1]) except Exception as e: print(e) printHelp() sys.exit(0) else: printHelp() print() print("No opacity given.")
#!/usr/bin/python3 import sys, os from desktoptheme import BreezeAlphaBlack def printHelp(): print("python3 setpanelopacity.py [opacity]") print("\t[opacity] is a real number from 0.0 to 1.0") print("\tEg: python3 setpanelopacity.py 0.6") if __name__ == '__main__': if len(sys.argv) >= 2: try: desktopTheme = BreezeAlphaBlack() desktopTheme.setPanelOpacity(sys.argv[1]) except Exception as e: print(e) printHelp() sys.exit(0) else: printHelp() print() print("No opacity given.")
#!/usr/bin/python3 import os import sys import json from desktoptheme import BreezeAlphaBlack desktoptheme = BreezeAlphaBlack() config = desktoptheme.themeConfig() out = {} for section in config.sections(): out[section] = {} for name, value in config.items(section): out[section][name] = value print(json.dumps(out, indent="\t"))
#!/usr/bin/python3 import sys, os from desktoptheme import BreezeAlphaBlack def printHelp(): print("python3 resettodefaults.py") if __name__ == '__main__': desktopTheme = BreezeAlphaBlack() desktopTheme.resetToDefaults()
#!/usr/bin/python3 import sys, os from desktoptheme import BreezeAlphaBlack def printHelp(): print("python3 setthemecolor.py [red],[green],[blue]") print("\t[red/green/blue] are integers from 0-255") print("\tEg: python3 setthemecolor.py 0,0,0") if __name__ == '__main__': if len(sys.argv) >= 2: try: r, g, b = map(int, sys.argv[1].split(',')) newColor = "{},{},{}".format(r, g, b) desktopTheme = BreezeAlphaBlack() desktopTheme.setAccentColor(newColor) except Exception as e: print(e) printHelp() sys.exit(0) else: printHelp() print() print("No color given. Using the default 0,0,0 (black).") desktopTheme = BreezeAlphaBlack() desktopTheme.setAccentColor('0,0,0')
#!/usr/bin/python3 import sys, os from desktoptheme import BreezeAlphaBlack def printHelp(): print("python3 setwidgetopacity.py [opacity]") print("\t[opacity] is a real number from 0.0 to 1.0") print("\tEg: python3 setwidgetopacity.py 0.6") if __name__ == '__main__': if len(sys.argv) >= 2: try: desktopTheme = BreezeAlphaBlack() desktopTheme.setWidgetOpacity(sys.argv[1]) except Exception as e: print(e) printHelp() sys.exit(0) else: printHelp() print() print("No opacity given.")
import sys, os from desktoptheme import BreezeAlphaBlack scriptFilename = 'setthemecolor.py' defaultColorName = 'black' defaultColorStr = '0,0,0' def printHelp(): print("python3 {} [red],[green],[blue]".format(scriptFilename)) print("\t[red/green/blue] are integers from 0-255") print("\tEg: python3 {} {}".format(scriptFilename, defaultColorStr)) if __name__ == '__main__': if len(sys.argv) >= 2: try: r, g, b = map(int, sys.argv[1].split(',')) newColor = "{},{},{}".format(r, g, b) desktopTheme = BreezeAlphaBlack() desktopTheme.setAccentColor(newColor) except Exception as e: print(e) printHelp() sys.exit(0) else: printHelp() print() print("No color given. Using the default {} ({}).".format(defaultColorStr, defaultColorName)) desktopTheme = BreezeAlphaBlack() desktopTheme.setAccentColor(defaultColorStr)
import sys, os from desktoptheme import BreezeAlphaBlack scriptFilename = 'settextcolor.py' defaultColorName = 'white' defaultColorStr = '239,240,241' def printHelp(): print("python3 {} [red],[green],[blue]".format(scriptFilename)) print("\t[red/green/blue] are integers from 0-255") print("\tEg: python3 {} {}".format(scriptFilename, defaultColorStr)) if __name__ == '__main__': if len(sys.argv) >= 2: try: r, g, b = map(int, sys.argv[1].split(',')) newColor = "{},{},{}".format(r, g, b) desktopTheme = BreezeAlphaBlack() desktopTheme.setTextColor(newColor) except Exception as e: print(e) printHelp() sys.exit(0) else: printHelp() print() print("No color given. Using the default {} ({}).".format(defaultColorStr, defaultColorName)) desktopTheme = BreezeAlphaBlack() desktopTheme.setTextColor(defaultColorStr)
#!/usr/bin/python3 import sys, os from desktoptheme import BreezeAlphaBlack def printHelp(): print("python3 settextcolor.py [red],[green],[blue]") print("\t[red/green/blue] are integers from 0-255") print("\tEg: python3 settextcolor.py 239,240,241") if __name__ == '__main__': if len(sys.argv) >= 2: try: r, g, b = map(int, sys.argv[1].split(',')) newColor = "{},{},{}".format(r, g, b) desktopTheme = BreezeAlphaBlack() desktopTheme.setTextColor(newColor) except Exception as e: print(e) printHelp() sys.exit(0) else: printHelp() print() print("No color given. Using the default 239,240,241 (white).") desktopTheme = BreezeAlphaBlack() desktopTheme.setTextColor('239,240,241')
#!/usr/bin/python3 import sys, os from desktoptheme import BreezeAlphaBlack def printHelp(): print("python3 setpanelpadding.py [pixels]") print("\t[pixels] is an integer from 0 to 40") print("\tEg: python3 setpanelpadding.py 2") if __name__ == '__main__': if len(sys.argv) >= 2: try: desktopTheme = BreezeAlphaBlack() desktopTheme.setPanelPadding(sys.argv[1]) except Exception as e: print(e) printHelp() sys.exit(0) else: printHelp() print() print("No padding given.")
#!/usr/bin/python3 import sys, os from desktoptheme import BreezeAlphaBlack def printHelp(): print("python3 settasksvg.py [style]") print("\t[style] can be 'inside' (like Breeze) or 'outside' (like Win10)") print("\tEg: python3 settasksvg.py outside") if __name__ == '__main__': if len(sys.argv) >= 2: try: desktopTheme = BreezeAlphaBlack() desktopTheme.setTasksSvg(sys.argv[1]) except Exception as e: print(e) printHelp() sys.exit(0) else: printHelp() print() print("No theme given.")