src/eric7/Preferences/ConfigurationPages/IconsPage.py

branch
eric7
changeset 10671
f2d75784e574
parent 10600
954bd7d48910
child 10676
d1479a4f1426
equal deleted inserted replaced
10670:bfa05f79d932 10671:f2d75784e574
44 44
45 # set initial values 45 # set initial values
46 self.iconSizeComboBox.setCurrentIndex( 46 self.iconSizeComboBox.setCurrentIndex(
47 self.iconSizeComboBox.findData(Preferences.getIcons("IconSize")) 47 self.iconSizeComboBox.findData(Preferences.getIcons("IconSize"))
48 ) 48 )
49 self.vectorIconsCheckBox.setChecked(Preferences.getIcons("PreferVectorIcons"))
49 50
50 defaultIconsPath = Preferences.getIcons("DefaultIconsPath") 51 defaultIconsPath = Preferences.getIcons("DefaultIconsPath")
51 if defaultIconsPath == "automatic": 52 if defaultIconsPath == "automatic":
52 self.defaultAutomaticButton.setChecked(True) 53 self.defaultAutomaticButton.setChecked(True)
53 elif defaultIconsPath == "breeze-light": 54 elif defaultIconsPath == "breeze-light":
66 def save(self): 67 def save(self):
67 """ 68 """
68 Public slot to save the Icons configuration. 69 Public slot to save the Icons configuration.
69 """ 70 """
70 Preferences.setIcons("IconSize", self.iconSizeComboBox.currentData()) 71 Preferences.setIcons("IconSize", self.iconSizeComboBox.currentData())
72 Preferences.setIcons("PreferVectorIcons", self.vectorIconsCheckBox.isChecked())
71 73
72 Preferences.setIcons("DefaultIconsPath", self.__getSelectedDefaultIconsPath()) 74 Preferences.setIcons("DefaultIconsPath", self.__getSelectedDefaultIconsPath())
73 75
74 dirList = [] 76 dirList = []
75 for i in range(self.iconDirectoryList.count()): 77 for i in range(self.iconDirectoryList.count()):

eric ide

mercurial