Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/package/contents/ui/main.qml
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 50 | QtControls.Button { | |||
---|---|---|---|---|---|
54 | text: i18n("&Adjust All Fonts...") | 54 | text: i18n("&Adjust All Fonts...") | ||
55 | 55 | | |||
56 | onClicked: kcm.adjustAllFonts(); | 56 | onClicked: kcm.adjustAllFonts(); | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | FontWidget { | 59 | FontWidget { | ||
60 | id: generalFontWidget | 60 | id: generalFontWidget | ||
61 | label: i18n("General:") | 61 | label: i18n("General:") | ||
62 | category: "generalFont" | 62 | category: "font" | ||
63 | font: kcm.generalFont | 63 | font: kcm.fontsSettings.font | ||
64 | } | 64 | } | ||
65 | FontWidget { | 65 | FontWidget { | ||
66 | label: i18n("Fixed width:") | 66 | label: i18n("Fixed width:") | ||
67 | category: "fixedWidthFont" | 67 | category: "fixed" | ||
68 | font: kcm.fixedWidthFont | 68 | font: kcm.fontsSettings.fixed | ||
69 | } | 69 | } | ||
70 | FontWidget { | 70 | FontWidget { | ||
71 | label: i18n("Small:") | 71 | label: i18n("Small:") | ||
72 | category: "smallFont" | 72 | category: "smallestReadableFont" | ||
73 | font: kcm.smallFont | 73 | font: kcm.fontsSettings.smallestReadableFont | ||
74 | } | 74 | } | ||
75 | FontWidget { | 75 | FontWidget { | ||
76 | label: i18n("Toolbar:") | 76 | label: i18n("Toolbar:") | ||
77 | category: "toolbarFont" | 77 | category: "toolBarFont" | ||
78 | font: kcm.toolbarFont | 78 | font: kcm.fontsSettings.toolBarFont | ||
79 | } | 79 | } | ||
80 | FontWidget { | 80 | FontWidget { | ||
81 | label: i18n("Menu:") | 81 | label: i18n("Menu:") | ||
82 | category: "menuFont" | 82 | category: "menuFont" | ||
83 | font: kcm.menuFont | 83 | font: kcm.fontsSettings.menuFont | ||
84 | } | 84 | } | ||
85 | FontWidget { | 85 | FontWidget { | ||
86 | label: i18n("Window title:") | 86 | label: i18n("Window title:") | ||
87 | category: "windowTitleFont" | 87 | category: "activeFont" | ||
88 | font: kcm.windowTitleFont | 88 | font: kcm.fontsSettings.activeFont | ||
89 | } | 89 | } | ||
90 | 90 | | |||
91 | Kirigami.Separator { | 91 | Kirigami.Separator { | ||
92 | Kirigami.FormData.isSection: true | 92 | Kirigami.FormData.isSection: true | ||
93 | } | 93 | } | ||
94 | 94 | | |||
95 | QtControls.CheckBox { | 95 | QtControls.CheckBox { | ||
96 | id: antiAliasingCheckBox | 96 | id: antiAliasingCheckBox | ||
▲ Show 20 Lines • Show All 145 Lines • ▼ Show 20 Line(s) | 240 | QtDialogs.FontDialog { | |||
242 | title: i18n("Select Font") | 242 | title: i18n("Select Font") | ||
243 | modality: Qt.WindowModal | 243 | modality: Qt.WindowModal | ||
244 | property string currentCategory | 244 | property string currentCategory | ||
245 | property bool adjustAllFonts: false | 245 | property bool adjustAllFonts: false | ||
246 | onAccepted: { | 246 | onAccepted: { | ||
247 | if (adjustAllFonts) { | 247 | if (adjustAllFonts) { | ||
248 | kcm.adjustAllFonts(font); | 248 | kcm.adjustAllFonts(font); | ||
249 | } else { | 249 | } else { | ||
250 | kcm[currentCategory] = font; | 250 | kcm.fontsSettings[currentCategory] = font; | ||
251 | } | 251 | } | ||
252 | } | 252 | } | ||
253 | } | 253 | } | ||
254 | } | 254 | } | ||
255 | } | 255 | } | ||
256 | } | 256 | } |