ukui-clock/constant_class.h

62 lines
2.2 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef CONSTANTCLASS_H
#define CONSTANTCLASS_H
#include <QDebug>
#include "utils.h"
//声明一些必须的宏
#define ORG_UKUI_STYLE "org.ukui.style"
#define STYLE_NAME "styleName"
#define STYLE_NAME_KEY_DARK "ukui-dark"
#define STYLE_NAME_KEY_DEFAULT "ukui-default"
#define STYLE_NAME_KEY_BLACK "ukui-black"
#define STYLE_NAME_KEY_LIGHT "ukui-light"
#define STYLE_NAME_KEY_WHITE "ukui-white"
#define STYLE_ICON "icon-theme-name"
#define STYLE_ICON_NAME "iconThemeName"
#define TIME_SEPARATOR ":"
#define TIME_SEPARATOR_CN ""
#define APPLICATION_NAME "ukui-clock"
#define CLOCK_TITLE_NAME "Alarm"
#define KYLIN_CLOCK_APP_NAME "Alarm"
const static QString chooseColor = "61,107,229,255";
const static QString hoverColor = "55,144,250,255";
#define SYSTEM_FONT_EKY "system-font-size"
/*!
* 系统时间
*/
#define FORMAT_SCHEMA "org.ukui.control-center.panel.plugins"
#define TIME_FORMAT_KEY "hoursystem"
#define SYSTEM_FONT_SIZE "systemFontSize"
#define HOUR_SYSTEM "hoursystem"
#define DEFAULT_BELL_SAVE_PATH "/usr/share/ukui-clock/"
#define DIY_BELL_SAVE_PATH "/kylindata/ukui-clock/"
#define WHEEL_KEY_HW "wheel-speed"
#define WHEEL_KEY_SP "wheelSpeed"
#define MOUSE_SCHEMA "org.ukui.peripherals-mouse"
const static int TIME_SCROLL_NUM_SIZE = 3;
const static int ITEM_RADIUS=6;
const static int WINDOWN_RADIUS=12;
const static int SELECT_DIA_RADIUS=8;
const static int SELECT_ITEM_RADIUS=6;
const static int COUNTDOWN_TIME=6;
#endif // CONSTANTCLASS_H