|
|
|
@ -46,12 +46,12 @@ def get_system_rgb(obj, pallete_type):
|
|
|
|
|
|
|
|
|
|
def dpivalue(size):
|
|
|
|
|
try:
|
|
|
|
|
return size * qt.QApplication.screens()[0].logicalDotsPerInch() / 96.0;
|
|
|
|
|
return int(size * qt.QApplication.screens()[0].logicalDotsPerInch() / 96.0);
|
|
|
|
|
except BaseException as e:
|
|
|
|
|
print(str(e))
|
|
|
|
|
if isinstance(e, KeyboardInterrupt):
|
|
|
|
|
raise
|
|
|
|
|
return size
|
|
|
|
|
return int(size)
|
|
|
|
|
|
|
|
|
|
def alphed(rgbstr, value):
|
|
|
|
|
# return rgbstr.replace(")", ",%d)"%value)
|
|
|
|
|