Warning, /plasma/plasma-mobile/quicksettings/nightcolor/package/contents/ui/main.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *   SPDX-FileCopyrightText: 2015 Marco Martin <notmart@gmail.com>
0003  *   SPDX-FileCopyrightText: 2021 Devin Lin <espidev@gmail.com>
0004  *   SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@kde.org>
0005  *
0006  *   SPDX-License-Identifier: LGPL-2.0-or-later
0007  */
0008 
0009 import org.kde.plasma.quicksetting.nightcolor 1.0 as NightColor
0010 import org.kde.plasma.private.mobileshell.quicksettingsplugin as QS
0011 
0012 QS.QuickSetting {
0013     text: i18n("Night Color")
0014     icon: "redshift-status-on"
0015     enabled: NightColor.NightColorUtil.enabled
0016     status: ""
0017     settingsCommand: "plasma-open-settings kcm_nightcolor"
0018 
0019     function toggle() {
0020         NightColor.NightColorUtil.enabled = !enabled;
0021     }
0022 }