Change the name
This commit is contained in:
parent
a195f05080
commit
f22aabacc1
24 changed files with 44 additions and 45 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: revenmartin <revenmartin@gmail.com>
|
* Author: revenmartin <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
@ -27,11 +27,11 @@
|
||||||
|
|
||||||
Appearance::Appearance(QObject *parent)
|
Appearance::Appearance(QObject *parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
, m_interface("org.cyber.Settings",
|
, m_interface("org.cutefish.Settings",
|
||||||
"/Theme",
|
"/Theme",
|
||||||
"org.cyber.Theme",
|
"org.cutefish.Theme",
|
||||||
QDBusConnection::sessionBus())
|
QDBusConnection::sessionBus())
|
||||||
, m_dockSettings(new QSettings(QSettings::UserScope, "cyberos", "dock"))
|
, m_dockSettings(new QSettings(QSettings::UserScope, "cutefishos", "dock"))
|
||||||
, m_dockConfigWacher(new QFileSystemWatcher(this))
|
, m_dockConfigWacher(new QFileSystemWatcher(this))
|
||||||
, m_dockIconSize(0)
|
, m_dockIconSize(0)
|
||||||
, m_dockDirection(0)
|
, m_dockDirection(0)
|
||||||
|
@ -108,9 +108,9 @@ void Appearance::setGenericFontFamily(const QString &name)
|
||||||
if (name.isEmpty())
|
if (name.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
QDBusInterface iface("org.cyber.Settings",
|
QDBusInterface iface("org.cutefish.Settings",
|
||||||
"/Theme",
|
"/Theme",
|
||||||
"org.cyber.Theme",
|
"org.cutefish.Theme",
|
||||||
QDBusConnection::sessionBus(), this);
|
QDBusConnection::sessionBus(), this);
|
||||||
if (iface.isValid()) {
|
if (iface.isValid()) {
|
||||||
iface.call("setSystemFont", name);
|
iface.call("setSystemFont", name);
|
||||||
|
@ -122,9 +122,9 @@ void Appearance::setFixedFontFamily(const QString &name)
|
||||||
if (name.isEmpty())
|
if (name.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
QDBusInterface iface("org.cyber.Settings",
|
QDBusInterface iface("org.cutefish.Settings",
|
||||||
"/Theme",
|
"/Theme",
|
||||||
"org.cyber.Theme",
|
"org.cutefish.Theme",
|
||||||
QDBusConnection::sessionBus(), this);
|
QDBusConnection::sessionBus(), this);
|
||||||
if (iface.isValid()) {
|
if (iface.isValid()) {
|
||||||
iface.call("setSystemFixedFont", name);
|
iface.call("setSystemFixedFont", name);
|
||||||
|
@ -140,9 +140,9 @@ void Appearance::setFontPointSize(int fontPointSize)
|
||||||
{
|
{
|
||||||
m_fontPointSize = fontPointSize;
|
m_fontPointSize = fontPointSize;
|
||||||
|
|
||||||
QDBusInterface iface("org.cyber.Settings",
|
QDBusInterface iface("org.cutefish.Settings",
|
||||||
"/Theme",
|
"/Theme",
|
||||||
"org.cyber.Theme",
|
"org.cutefish.Theme",
|
||||||
QDBusConnection::sessionBus(), this);
|
QDBusConnection::sessionBus(), this);
|
||||||
if (iface.isValid()) {
|
if (iface.isValid()) {
|
||||||
iface.call("setSystemFontPointSize", m_fontPointSize * 1.0);
|
iface.call("setSystemFontPointSize", m_fontPointSize * 1.0);
|
||||||
|
@ -151,9 +151,9 @@ void Appearance::setFontPointSize(int fontPointSize)
|
||||||
|
|
||||||
void Appearance::setAccentColor(int accentColor)
|
void Appearance::setAccentColor(int accentColor)
|
||||||
{
|
{
|
||||||
QDBusInterface iface("org.cyber.Settings",
|
QDBusInterface iface("org.cutefish.Settings",
|
||||||
"/Theme",
|
"/Theme",
|
||||||
"org.cyber.Theme",
|
"org.cutefish.Theme",
|
||||||
QDBusConnection::sessionBus(), this);
|
QDBusConnection::sessionBus(), this);
|
||||||
if (iface.isValid()) {
|
if (iface.isValid()) {
|
||||||
iface.call("setAccentColor", accentColor);
|
iface.call("setAccentColor", accentColor);
|
||||||
|
@ -167,9 +167,9 @@ double Appearance::devicePixelRatio() const
|
||||||
|
|
||||||
void Appearance::setDevicePixelRatio(double value)
|
void Appearance::setDevicePixelRatio(double value)
|
||||||
{
|
{
|
||||||
QDBusInterface iface("org.cyber.Settings",
|
QDBusInterface iface("org.cutefish.Settings",
|
||||||
"/Theme",
|
"/Theme",
|
||||||
"org.cyber.Theme",
|
"org.cutefish.Theme",
|
||||||
QDBusConnection::sessionBus(), this);
|
QDBusConnection::sessionBus(), this);
|
||||||
if (iface.isValid()) {
|
if (iface.isValid()) {
|
||||||
iface.call("setDevicePixelRatio", value);
|
iface.call("setDevicePixelRatio", value);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: revenmartin <revenmartin@gmail.com>
|
* Author: revenmartin <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#include "battery.h"
|
#include "battery.h"
|
||||||
|
|
||||||
static const QString s_sServer = "org.cyber.Settings";
|
static const QString s_sServer = "org.cutefish.Settings";
|
||||||
static const QString s_sPath = "/PrimaryBattery";
|
static const QString s_sPath = "/PrimaryBattery";
|
||||||
static const QString s_sInterface = "org.cyber.PrimaryBattery";
|
static const QString s_sInterface = "org.cutefish.PrimaryBattery";
|
||||||
|
|
||||||
Battery::Battery(QObject *parent)
|
Battery::Battery(QObject *parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
|
@ -10,9 +10,9 @@ Battery::Battery(QObject *parent)
|
||||||
"/org/freedesktop/UPower",
|
"/org/freedesktop/UPower",
|
||||||
"org.freedesktop.UPower",
|
"org.freedesktop.UPower",
|
||||||
QDBusConnection::systemBus())
|
QDBusConnection::systemBus())
|
||||||
, m_interface("org.cyber.Settings",
|
, m_interface("org.cutefish.Settings",
|
||||||
"/PrimaryBattery",
|
"/PrimaryBattery",
|
||||||
"org.cyber.PrimaryBattery",
|
"org.cutefish.PrimaryBattery",
|
||||||
QDBusConnection::sessionBus())
|
QDBusConnection::sessionBus())
|
||||||
, m_available(false)
|
, m_available(false)
|
||||||
, m_onBattery(false)
|
, m_onBattery(false)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: revenmartin <revenmartin@gmail.com>
|
* Author: revenmartin <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
@ -22,9 +22,9 @@
|
||||||
Brightness::Brightness(QObject *parent)
|
Brightness::Brightness(QObject *parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
, m_dbusConnection(QDBusConnection::sessionBus())
|
, m_dbusConnection(QDBusConnection::sessionBus())
|
||||||
, m_iface("org.cyber.Settings",
|
, m_iface("org.cutefish.Settings",
|
||||||
"/Brightness",
|
"/Brightness",
|
||||||
"org.cyber.Brightness", m_dbusConnection)
|
"org.cutefish.Brightness", m_dbusConnection)
|
||||||
, m_value(0)
|
, m_value(0)
|
||||||
, m_enabled(false)
|
, m_enabled(false)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: revenmartin <revenmartin@gmail.com>
|
* Author: revenmartin <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
@ -43,7 +43,7 @@ DockSettings::DockSettings(QObject *parent)
|
||||||
, m_statusBarHeight(30)
|
, m_statusBarHeight(30)
|
||||||
, m_direction(Left)
|
, m_direction(Left)
|
||||||
, m_visibility(AlwaysVisible)
|
, m_visibility(AlwaysVisible)
|
||||||
, m_settings(new QSettings(QSettings::UserScope, "cyberos", "dock"))
|
, m_settings(new QSettings(QSettings::UserScope, "cutefishos", "dock"))
|
||||||
, m_fileWatcher(new QFileSystemWatcher(this))
|
, m_fileWatcher(new QFileSystemWatcher(this))
|
||||||
{
|
{
|
||||||
if (!m_settings->contains("IconSize"))
|
if (!m_settings->contains("IconSize"))
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "statusnotifieritemsource.h"
|
#include "statusnotifieritemsource.h"
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QIcon>
|
#include <QIcon>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
#include <QDBusServiceWatcher>
|
#include <QDBusServiceWatcher>
|
||||||
#include <QDBusPendingCall>
|
#include <QDBusPendingCall>
|
||||||
|
|
||||||
static const QString Service = "org.cyber.Settings";
|
static const QString Service = "org.cutefish.Settings";
|
||||||
static const QString ObjectPath = "/Audio";
|
static const QString ObjectPath = "/Audio";
|
||||||
static const QString Interface = "org.cyber.Audio";
|
static const QString Interface = "org.cutefish.Audio";
|
||||||
|
|
||||||
static VolumeManager *SELF = nullptr;
|
static VolumeManager *SELF = nullptr;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 ~ 2021 CyberOS Team.
|
* Copyright (C) 2021 CutefishOS Team.
|
||||||
*
|
*
|
||||||
* Author: rekols <revenmartin@gmail.com>
|
* Author: rekols <revenmartin@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue