Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/package/contents/ui/main.qml
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 47 | Kirigami.FormLayout { | |||
---|---|---|---|---|---|
50 | 50 | | |||
51 | QtControls.Button { | 51 | QtControls.Button { | ||
52 | id: adjustAllFontsButton | 52 | id: adjustAllFontsButton | ||
53 | Layout.preferredWidth: formLayout.maxImplicitWidth | 53 | Layout.preferredWidth: formLayout.maxImplicitWidth | ||
54 | icon.name: "font-select-symbolic" | 54 | icon.name: "font-select-symbolic" | ||
55 | text: i18n("&Adjust All Fonts...") | 55 | text: i18n("&Adjust All Fonts...") | ||
56 | 56 | | |||
57 | onClicked: kcm.adjustAllFonts(); | 57 | onClicked: kcm.adjustAllFonts(); | ||
58 | enabled: !kcm.fontsSettings.isImmutable("font") | ||||
59 | || !kcm.fontsSettings.isImmutable("fixed") | ||||
60 | || !kcm.fontsSettings.isImmutable("smallestReadableFont") | ||||
61 | || !kcm.fontsSettings.isImmutable("toolBarFont") | ||||
62 | || !kcm.fontsSettings.isImmutable("menuFont") | ||||
63 | || !kcm.fontsSettings.isImmutable("activeFont") | ||||
58 | } | 64 | } | ||
59 | 65 | | |||
60 | FontWidget { | 66 | FontWidget { | ||
61 | id: generalFontWidget | 67 | id: generalFontWidget | ||
62 | label: i18n("General:") | 68 | label: i18n("General:") | ||
63 | category: "font" | 69 | category: "font" | ||
64 | font: kcm.fontsSettings.font | 70 | font: kcm.fontsSettings.font | ||
71 | enabled: !kcm.fontsSettings.isImmutable("font") | ||||
65 | } | 72 | } | ||
66 | FontWidget { | 73 | FontWidget { | ||
67 | label: i18n("Fixed width:") | 74 | label: i18n("Fixed width:") | ||
68 | category: "fixed" | 75 | category: "fixed" | ||
69 | font: kcm.fontsSettings.fixed | 76 | font: kcm.fontsSettings.fixed | ||
77 | enabled: !kcm.fontsSettings.isImmutable("fixed") | ||||
70 | } | 78 | } | ||
71 | FontWidget { | 79 | FontWidget { | ||
72 | label: i18n("Small:") | 80 | label: i18n("Small:") | ||
73 | category: "smallestReadableFont" | 81 | category: "smallestReadableFont" | ||
74 | font: kcm.fontsSettings.smallestReadableFont | 82 | font: kcm.fontsSettings.smallestReadableFont | ||
83 | enabled: !kcm.fontsSettings.isImmutable("smallestReadableFont") | ||||
75 | } | 84 | } | ||
76 | FontWidget { | 85 | FontWidget { | ||
77 | label: i18n("Toolbar:") | 86 | label: i18n("Toolbar:") | ||
78 | category: "toolBarFont" | 87 | category: "toolBarFont" | ||
79 | font: kcm.fontsSettings.toolBarFont | 88 | font: kcm.fontsSettings.toolBarFont | ||
89 | enabled: !kcm.fontsSettings.isImmutable("toolBarFont") | ||||
80 | } | 90 | } | ||
81 | FontWidget { | 91 | FontWidget { | ||
82 | label: i18n("Menu:") | 92 | label: i18n("Menu:") | ||
83 | category: "menuFont" | 93 | category: "menuFont" | ||
84 | font: kcm.fontsSettings.menuFont | 94 | font: kcm.fontsSettings.menuFont | ||
95 | enabled: !kcm.fontsSettings.isImmutable("menuFont") | ||||
85 | } | 96 | } | ||
86 | FontWidget { | 97 | FontWidget { | ||
87 | label: i18n("Window title:") | 98 | label: i18n("Window title:") | ||
88 | category: "activeFont" | 99 | category: "activeFont" | ||
89 | font: kcm.fontsSettings.activeFont | 100 | font: kcm.fontsSettings.activeFont | ||
101 | enabled: !kcm.fontsSettings.isImmutable("activeFont") | ||||
90 | } | 102 | } | ||
91 | 103 | | |||
92 | Kirigami.Separator { | 104 | Kirigami.Separator { | ||
93 | Kirigami.FormData.isSection: true | 105 | Kirigami.FormData.isSection: true | ||
94 | } | 106 | } | ||
95 | 107 | | |||
96 | QtControls.CheckBox { | 108 | QtControls.CheckBox { | ||
97 | id: antiAliasingCheckBox | 109 | id: antiAliasingCheckBox | ||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |