diff --git a/kcms/fonts/package/contents/ui/main.qml b/kcms/fonts/package/contents/ui/main.qml index c54b5f6f9..9fa7dcf21 100644 --- a/kcms/fonts/package/contents/ui/main.qml +++ b/kcms/fonts/package/contents/ui/main.qml @@ -1,261 +1,263 @@ /* Copyright (c) 2015 Antonis Tsiapaliokas Copyright (c) 2017 Marco Martin Copyright (c) 2019 Benjamin Port This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import QtQuick 2.1 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 as QtControls import QtQuick.Dialogs 1.2 as QtDialogs import org.kde.kirigami 2.4 as Kirigami import org.kde.kcm 1.1 as KCM KCM.SimpleKCM { id: root KCM.ConfigModule.quickHelp: i18n("This module lets you configure the system fonts.") ColumnLayout { Kirigami.InlineMessage { id: antiAliasingMessage Layout.fillWidth: true showCloseButton: true text: i18n("Some changes such as anti-aliasing or DPI will only affect newly started applications.") Connections { target: kcm.fontAASettings onAliasingChangeApplied: antiAliasingMessage.visible = true } } Kirigami.FormLayout { id: formLayout readonly property int maxImplicitWidth: Math.max(adjustAllFontsButton.implicitWidth, excludeField.implicitWidth, subPixelCombo.implicitWidth, hintingCombo.implicitWidth) QtControls.Button { id: adjustAllFontsButton Layout.preferredWidth: formLayout.maxImplicitWidth icon.name: "font-select-symbolic" text: i18n("&Adjust All Fonts...") onClicked: kcm.adjustAllFonts(); } FontWidget { id: generalFontWidget label: i18n("General:") category: "font" font: kcm.fontsSettings.font } FontWidget { label: i18n("Fixed width:") category: "fixed" font: kcm.fontsSettings.fixed } FontWidget { label: i18n("Small:") category: "smallestReadableFont" font: kcm.fontsSettings.smallestReadableFont } FontWidget { label: i18n("Toolbar:") category: "toolBarFont" font: kcm.fontsSettings.toolBarFont } FontWidget { label: i18n("Menu:") category: "menuFont" font: kcm.fontsSettings.menuFont } FontWidget { label: i18n("Window title:") category: "activeFont" font: kcm.fontsSettings.activeFont } Kirigami.Separator { Kirigami.FormData.isSection: true } QtControls.CheckBox { id: antiAliasingCheckBox checked: kcm.fontAASettings.antiAliasing onCheckedChanged: kcm.fontAASettings.antiAliasing = checked Kirigami.FormData.label: i18n("Anti-Aliasing:") text: i18n("Enable") Layout.fillWidth: true } QtControls.CheckBox { id: excludeCheckBox checked: kcm.fontAASettings.exclude onCheckedChanged: kcm.fontAASettings.exclude = checked; text: i18n("Exclude range from anti-aliasing") Layout.fillWidth: true enabled: antiAliasingCheckBox.checked } RowLayout { id: excludeField Layout.preferredWidth: formLayout.maxImplicitWidth enabled: antiAliasingCheckBox.checked QtControls.SpinBox { id: excludeFromSpinBox stepSize: 1 onValueChanged: kcm.fontAASettings.excludeFrom = value textFromValue: function(value, locale) { return i18n("%1 pt", value)} valueFromText: function(text, locale) { return parseInt(text) } editable: true enabled: excludeCheckBox.checked } QtControls.Label { Layout.fillWidth: true horizontalAlignment: Text.AlignHCenter text: i18n("to") enabled: excludeCheckBox.checked } QtControls.SpinBox { id: excludeToSpinBox stepSize: 1 onValueChanged: kcm.fontAASettings.excludeTo = value textFromValue: function(value, locale) { return i18n("%1 pt", value)} valueFromText: function(text, locale) { return parseInt(text) } editable: true enabled: excludeCheckBox.checked } Connections { target: kcm.fontAASettings onExcludeFromChanged: excludeFromSpinBox.value = kcm.fontAASettings.excludeFrom; onExcludeToChanged: excludeToSpinBox.value = kcm.fontAASettings.excludeTo; } } QtControls.ComboBox { id: subPixelCombo Layout.preferredWidth: formLayout.maxImplicitWidth Kirigami.FormData.label: i18nc("Used as a noun, and precedes a combobox full of options", "Sub-pixel rendering:") currentIndex: kcm.fontAASettings.subPixelCurrentIndex onCurrentIndexChanged: kcm.fontAASettings.subPixelCurrentIndex = currentIndex; model: kcm.fontAASettings.subPixelOptionsModel textRole: "display" enabled: antiAliasingCheckBox.checked popup.height: popup.implicitHeight delegate: QtControls.ItemDelegate { id: subPixelDelegate onWidthChanged: { subPixelCombo.popup.width = Math.max(subPixelCombo.popup.width, width) } contentItem: ColumnLayout { id: subPixelLayout Kirigami.Heading { id: subPixelComboText text: model.display level: 5 } Image { id: subPixelComboImage source: "image://preview/" + model.index + "_" + kcm.fontAASettings.hintingCurrentIndex + ".png" // Setting sourceSize here is necessary as a workaround for QTBUG-38127 // // With this bug, images requested from a QQuickImageProvider have an incorrect scale with devicePixelRatio != 1 when sourceSize is not set. // // TODO: Check if QTBUG-38127 is fixed and remove the next two lines. sourceSize.width: 1 sourceSize.height: 1 } } } } QtControls.ComboBox { id: hintingCombo Layout.preferredWidth: formLayout.maxImplicitWidth Kirigami.FormData.label: i18nc("Used as a noun, and precedes a combobox full of options", "Hinting:") currentIndex: kcm.fontAASettings.hintingCurrentIndex onCurrentTextChanged: kcm.fontAASettings.hintingCurrentIndex = currentIndex; model: kcm.fontAASettings.hintingOptionsModel textRole: "display" enabled: antiAliasingCheckBox.checked popup.height: popup.implicitHeight delegate: QtControls.ItemDelegate { id: hintingDelegate onWidthChanged: { hintingCombo.popup.width = Math.max(hintingCombo.popup.width, width) } contentItem: ColumnLayout { id: hintingLayout Kirigami.Heading { id: hintingComboText text: model.display level: 5 } Image { id: hintingComboImage source: "image://preview/" + kcm.fontAASettings.subPixelCurrentIndex + "_" + model.index + ".png" // Setting sourceSize here is necessary as a workaround for QTBUG-38127 // // With this bug, images requested from a QQuickImageProvider have an incorrect scale with devicePixelRatio != 1 when sourceSize is not set. // // TODO: Check if QTBUG-38127 is fixed and remove the next two lines. sourceSize.width: 1 sourceSize.height: 1 } } } } RowLayout { QtControls.CheckBox { id: dpiCheckBox checked: kcm.fontAASettings.dpi !== 0 text: i18n("Force font DPI:") onClicked: kcm.fontAASettings.dpi = (checked ? dpiSpinBox.value : 0) } QtControls.SpinBox { id: dpiSpinBox stepSize: 24 editable: true enabled: dpiCheckBox.checked value: kcm.fontAASettings.dpi !== 0 ? kcm.fontAASettings.dpi : 96 onValueModified: kcm.fontAASettings.dpi = value - to: 1000 - from: 1 + // to: need to divide to stepSize + to: 1008 + // lowest vaue here can be == stepSize, that is because 0 means off + from: 24 } } QtDialogs.FontDialog { id: fontDialog title: i18n("Select Font") modality: Qt.WindowModal property string currentCategory property bool adjustAllFonts: false onAccepted: { if (adjustAllFonts) { kcm.adjustAllFonts(font); } else { kcm.fontsSettings[currentCategory] = font; } } } } } } diff --git a/org.kde.plasmashell.metainfo.xml b/org.kde.plasmashell.metainfo.xml index 5a3c4a0ca..984782f5d 100644 --- a/org.kde.plasmashell.metainfo.xml +++ b/org.kde.plasmashell.metainfo.xml @@ -1,141 +1,141 @@ org.kde.plasmashell CC0-1.0 GPL-2.0+ KDE Plasma Desktop سطح مكتب بلازما كدي Escritoriu Plasma de KDE Escriptori Plasma del KDE Escriptori Plasma de KDE Plocha KDE Plasma KDE Plasma skrivebordsmiljø KDE-Plasma-Arbeitsfläche Επιφάνεια εργασίας KDE Plasma KDE Plasma Desktop Escritorio KDE Plasma KDE¤ Plasma töölaud KDE Plasma mahaigaina KDE Plasma -työpöytä Bureau Plasma de KDE Escritorio Plasma de KDE שולחן העבודה KDE Plasma KDE Plasma Desktop (Scriptorio KDE Plasma) KDE Plasma Desktop Desktop KDE Plasma KDE Plasma 데스크톱 KDE Plasma darbalaukis KDE Plasma-skrivebord KDE Plasma Bureaublad KDE Plasma-skrivebord KDE ਪਲਾਜ਼ਮਾ ਡੈਸਕਟਾਪ Pulpit Plazmy KDE Área de Trabalho Plasma do KDE Área de trabalho Plasma do KDE Рабочий стол KDE Plasma Plocha KDE Plasma KDE-jevo namizje Plasma КДЕ‑ова плазма површ KDE‑ova plasma površ КДЕ‑ова плазма површ KDE‑ova plasma površ KDE Plasma skrivbord Мизи кории KDE Plasma KDE Plasma Masaüstü Стільниця Плазми KDE xxKDE Plasma Desktopxx KDE Plasma 桌面 KDE Plasma 桌面 KDE's complete desktop experience. Simple by default, powerful when needed La esperiencia d'escritoriu completa de KDE. Cenciellu por defeutu, potente cuando se precisa Experiència completa de l'escriptori KDE. Senzilla per omissió, potent quan cal Experiència completa de l'escriptori KDE. Senzilla per defecte, potent quan cal KDE's komplette desktop-oplevelse. Simpelt som standard, kraftfuldt når det behøves Das umfassende Arbeitsflächen-Erlebnis von KDE. Standardmäßig einfach, bei Bedarf leistungsstark Η πλήρης εμπειρία επιφάνειας εργασίας του KDE. Προκαθορισμένα απλή, πανίσχυρη όταν χρειάζεται. KDE's complete desktop experience. Simple by default, powerful when needed Experiencia completa de escritorio de KDE. Sencillo por omisión, potente cuando es necesario. KDEren mahaigain osoko esperientzia. Erraza izatez, ahaltsua behar denean KDE:n täydellinen työpöytäkokemus. Oletuksena yksinkertainen, tarvittaessa tehokas L'expérience de bureau complète de KDE. Simple par défaut, puissant si nécessaire Experiencia de escritorio completa de KDE. Simple de primeiras, potente cando cómpre KDE adalah desktop lengkap yang berpengalaman. Sederhana secara baku, bertenaga ketika diperlukan L'esperienza completa del desktop da KDE. Semplice nelle scelte predefinite, potente quando c'è bisogno KDE 데스크톱 사용자 환경입니다. 첫 시작은 간단하게, 필요할 때에는 강력하게 Pilnas KDE darbalaukio aplinkos patyrimas. Paprastas pagal numatymą, galingas to prireikus En komplett KDE-opplevelse – enkel som standard og kraftig når nødvendig De complete bureaubladervaring van KDE. Standaard eenvoudig, krachtig indien nodig Komplett KDE-oppleving – enkel som standard og kraftig når nødvendig Całkowite wrażenie pulpitu KDE. Prosty z natury, zaawansowany gdy potrzeba A experiência completa de trabalho do KDE. Simples por omissão, poderosa quando necessário A experiência da área de trabalho do KDE completa. Simples por padrão, potente quando necessário Рабочий стол от KDE: простота настройки и мощные возможности Kompletná pracovná plocha KDE. Predvolene jednoduchá, pri potrebe silná KDE-jeva popolna namizna izkušnja. Privzeto preprosta, a tudi zmogljiva, če je to zahtevano КДЕ‑ово потпуно искуство површи, подразумевано једноставно а моћно кад затреба KDE‑ovo potpuno iskustvo površi, podrazumevano jednostavno a moćno kad zatreba КДЕ‑ово потпуно искуство површи, подразумевано једноставно а моћно кад затреба KDE‑ovo potpuno iskustvo površi, podrazumevano jednostavno a moćno kad zatreba KDE:s fullständiga skrivbordsupplevelse. Normalt enkel, kraftfull vid behov Таҷрибаомӯзии пурра бо мизи кории KDE. Осонтарин дар асл ва пурқувват бо дархост мебошад KDE'nin tam masaüstü deneyimi. Özünde sade, gerektiğinde güçlü Повноцінне стільничне середовище KDE. Типово просте, але потужне, якщо це потрібно xxKDE's complete desktop experience. Simple by default, powerful when neededxx KDE 的完整桌面体验。默认简单,需要时强大。 KDE 的完整桌面體驗。預設簡潔,需要時足夠強大 https://www.kde.org/plasma-desktop https://bugs.kde.org/enter_bug.cgi?format=guided&product=plasmashell KDE plasmashell Plasma being used as a desktop Plasma usándose como escritoriu Fa servir el Plasma com a escriptori S'utilitza Plasma com a escriptori Plasma je použita jako pracovní prostředí Plasma bruges som skrivebord Plasma als eine Arbeitsfläche benutzt Χρήση Plasma ως επιφάνεια εργασίας Plasma being used as a desktop Plasma usado como escritorio Plasma mahaigain gisa erabilita Plasma on käytössä työpöytänä Plasma utilisé comme bureau Plasma usado como escritorio. Plasma telah digunakan sebagai desktop Plasma usato come desktop Plasma를 데스크톱으로 사용함 Plasma yra naudojama kaip darbalaukis Plasma blir brukt som skrivebord Plasma gebruikt wordend als een bureaublad Plasma vert brukt som skrivebord Plazma wykorzystywana jako pulpit O Plasma em uso como ambiente de trabalho Plasma sendo usado como área de trabalho Использование Plasma в качестве окружения рабочего стола Plasma sa používa ako plocha Za namizje se uporablja Plasma Плазма се користи за површ Plasma se koristi za površ Плазма се користи за површ Plasma se koristi za površ Plasma använt som skrivbord Плазма ҳамчун мизи корӣ истифода мешавад Plasma, masaüstü olarak kullanılıyor Плазма для використання на робочій станції xxPlasma being used as a desktopxx 使用 Plasma 作为桌面 Plasma 被用作桌面 https://cdn.kde.org/screenshots/plasma/plasma.png + -