Change the name

This commit is contained in:
cutefishd 2021-03-16 18:13:34 +08:00
parent a195f05080
commit f22aabacc1
24 changed files with 44 additions and 45 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: revenmartin <revenmartin@gmail.com>
*
@ -27,11 +27,11 @@
Appearance::Appearance(QObject *parent)
: QObject(parent)
, m_interface("org.cyber.Settings",
, m_interface("org.cutefish.Settings",
"/Theme",
"org.cyber.Theme",
"org.cutefish.Theme",
QDBusConnection::sessionBus())
, m_dockSettings(new QSettings(QSettings::UserScope, "cyberos", "dock"))
, m_dockSettings(new QSettings(QSettings::UserScope, "cutefishos", "dock"))
, m_dockConfigWacher(new QFileSystemWatcher(this))
, m_dockIconSize(0)
, m_dockDirection(0)
@ -108,9 +108,9 @@ void Appearance::setGenericFontFamily(const QString &name)
if (name.isEmpty())
return;
QDBusInterface iface("org.cyber.Settings",
QDBusInterface iface("org.cutefish.Settings",
"/Theme",
"org.cyber.Theme",
"org.cutefish.Theme",
QDBusConnection::sessionBus(), this);
if (iface.isValid()) {
iface.call("setSystemFont", name);
@ -122,9 +122,9 @@ void Appearance::setFixedFontFamily(const QString &name)
if (name.isEmpty())
return;
QDBusInterface iface("org.cyber.Settings",
QDBusInterface iface("org.cutefish.Settings",
"/Theme",
"org.cyber.Theme",
"org.cutefish.Theme",
QDBusConnection::sessionBus(), this);
if (iface.isValid()) {
iface.call("setSystemFixedFont", name);
@ -140,9 +140,9 @@ void Appearance::setFontPointSize(int fontPointSize)
{
m_fontPointSize = fontPointSize;
QDBusInterface iface("org.cyber.Settings",
QDBusInterface iface("org.cutefish.Settings",
"/Theme",
"org.cyber.Theme",
"org.cutefish.Theme",
QDBusConnection::sessionBus(), this);
if (iface.isValid()) {
iface.call("setSystemFontPointSize", m_fontPointSize * 1.0);
@ -151,9 +151,9 @@ void Appearance::setFontPointSize(int fontPointSize)
void Appearance::setAccentColor(int accentColor)
{
QDBusInterface iface("org.cyber.Settings",
QDBusInterface iface("org.cutefish.Settings",
"/Theme",
"org.cyber.Theme",
"org.cutefish.Theme",
QDBusConnection::sessionBus(), this);
if (iface.isValid()) {
iface.call("setAccentColor", accentColor);
@ -167,9 +167,9 @@ double Appearance::devicePixelRatio() const
void Appearance::setDevicePixelRatio(double value)
{
QDBusInterface iface("org.cyber.Settings",
QDBusInterface iface("org.cutefish.Settings",
"/Theme",
"org.cyber.Theme",
"org.cutefish.Theme",
QDBusConnection::sessionBus(), this);
if (iface.isValid()) {
iface.call("setDevicePixelRatio", value);

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: revenmartin <revenmartin@gmail.com>
*

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -1,8 +1,8 @@
#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_sInterface = "org.cyber.PrimaryBattery";
static const QString s_sInterface = "org.cutefish.PrimaryBattery";
Battery::Battery(QObject *parent)
: QObject(parent)
@ -10,9 +10,9 @@ Battery::Battery(QObject *parent)
"/org/freedesktop/UPower",
"org.freedesktop.UPower",
QDBusConnection::systemBus())
, m_interface("org.cyber.Settings",
, m_interface("org.cutefish.Settings",
"/PrimaryBattery",
"org.cyber.PrimaryBattery",
"org.cutefish.PrimaryBattery",
QDBusConnection::sessionBus())
, m_available(false)
, m_onBattery(false)

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: revenmartin <revenmartin@gmail.com>
*
@ -22,9 +22,9 @@
Brightness::Brightness(QObject *parent)
: QObject(parent)
, m_dbusConnection(QDBusConnection::sessionBus())
, m_iface("org.cyber.Settings",
, m_iface("org.cutefish.Settings",
"/Brightness",
"org.cyber.Brightness", m_dbusConnection)
"org.cutefish.Brightness", m_dbusConnection)
, m_value(0)
, m_enabled(false)
{

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: revenmartin <revenmartin@gmail.com>
*

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*
@ -43,7 +43,7 @@ DockSettings::DockSettings(QObject *parent)
, m_statusBarHeight(30)
, m_direction(Left)
, m_visibility(AlwaysVisible)
, m_settings(new QSettings(QSettings::UserScope, "cyberos", "dock"))
, m_settings(new QSettings(QSettings::UserScope, "cutefishos", "dock"))
, m_fileWatcher(new QFileSystemWatcher(this))
{
if (!m_settings->contains("IconSize"))

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -1,6 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
*
* Copyright (C) 2021 CutefishOS Team.
* Author: rekols <revenmartin@gmail.com>
*
* This program is free software: you can redistribute it and/or modify

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -6,9 +6,9 @@
#include <QDBusServiceWatcher>
#include <QDBusPendingCall>
static const QString Service = "org.cyber.Settings";
static const QString Service = "org.cutefish.Settings";
static const QString ObjectPath = "/Audio";
static const QString Interface = "org.cyber.Audio";
static const QString Interface = "org.cutefish.Audio";
static VolumeManager *SELF = nullptr;

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 ~ 2021 CyberOS Team.
* Copyright (C) 2021 CutefishOS Team.
*
* Author: rekols <revenmartin@gmail.com>
*