1+ """ Copyright© 2025 LinuxUsersLinuxMint
2+ Updater Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
3+ Updater All Rights Reserved under the GPL(General Public License).
4+ Bu Yazılımın Bir Kopyası GitHub da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/Updater
5+ A Copy of This Software is published on GitHub To view: https://github.com/LinuxUsersLinuxMint/Updater"""
6+
7+ import configparser
8+
9+ theme_file_config = configparser .ConfigParser ()
10+ theme_file_config .read ('Theme/theme_file.ini' )
11+
12+ name = theme_file_config ['ThemeDataFile' ]['name' ]
13+
14+ theme_config = configparser .ConfigParser ()
15+ theme_config .read (f'Theme/{ name } ' )
16+
17+ icon = theme_config ['Icon' ]['icon' ]
18+ userTheme = theme_config ['ThemeSettings' ]['userTheme' ]
19+ pywinstyles_theme = theme_config ['ThemeSettings' ]['pywinstyles_theme' ]
20+ userFont = theme_config ['FontSettings' ]['userFont' ]
21+ userFontSize = int (theme_config ['FontSettings' ]['userFontSize' ])
22+ userTitleFontSize = int (theme_config ['FontSettings' ]['userTitleFontSize' ])
23+ userFontBold = theme_config ['FontSettings' ]['userFontBold' ]
24+ userCornerRadiusValue = int (theme_config ['CornerRadiusSettings' ]['userCornerRadiusValue' ])
25+
26+ userButtonColor = theme_config ['ButtonAppearanceSettings' ]['userButtonColor' ]
27+ userButtonHoverColor = theme_config ['ButtonAppearanceSettings' ]['userButtonHoverColor' ]
28+ userButtonTextColor = theme_config ['ButtonAppearanceSettings' ]['userButtonTextColor' ]
29+ userButtonBorderColor = theme_config ['ButtonAppearanceSettings' ]['userButtonBorderColor' ]
30+ userButtonBorderWidth = theme_config ['ButtonAppearanceSettings' ]['userButtonBorderWidth' ]
31+ userWindowTitleColor = theme_config ['WindowSettings' ]['userWindowTitleColor' ]
32+ w_default_res = theme_config ['WindowSettings' ]['w_default_res' ]
33+ w_res = theme_config ['WindowSettings' ]['w_res' ]
34+ updater_btn_place_x = int (theme_config ['WindowSettings' ]['updater_btn_place_x' ])
35+
36+ if userFontBold == "False" :
37+ userFontBold = "normal"
38+ else :
39+ userFontBold = "bold"
40+
41+ if userButtonColor == "default" :
42+ userButtonColor = None
43+
44+ if userButtonHoverColor == "default" :
45+ userButtonHoverColor = None
46+
47+ if userButtonTextColor == "default" :
48+ userButtonTextColor = None
49+
50+ if userButtonBorderColor == "default" :
51+ userButtonBorderColor = None
52+
53+ if userButtonBorderWidth == "default" :
54+ userButtonBorderWidth = None
55+ else :
56+ userButtonBorderWidth = int (userButtonBorderWidth )
57+
58+ if userWindowTitleColor == "default" :
59+ userWindowTitleColor = None
0 commit comments