There is no need to convert the icon palette into qurl type,
but directly into qstring type in the internal implementation,
which is convenient for external use.
Log:
Influence: dci icon
Change-Id: Idc0136bb0fdff2ac96b0f84aca9ff86f5b4df152
1. Delete the icon type controlled by Type enum. The icon type
does not recognize whether the icon is one or more, and has
certain limitations in finding and using.
2. Delete data qualification with foreground and background only.
Add the layer concept, Each state of an icon can only add 5
layers at most, and each layer has its own color for decoration,
increasing the flexibility of icon drawing.
3. Add Icon palette object. It is a common object that controls
the color of icon layers. There are currently four palettes:
foreground, background, highlight, highlightForeground.
Log:
Influence: DCI ICON
Change-Id: Idf818cc9cf77aefd8a88a13fd21f9f817160e729
Because of calculating the device ratio multi-times, painting icons
use a invalid size.
Log:
Influence: None
Change-Id: Ia6f5407a6bc4ad58781483c83ca08eec6a2a11a9
Some icons use - 1 as the initial icon size, but the icon cannot be
found, This problem can be solved by modifying the judgment condition
to < = 0.
Log:
Influence: find DciIcon use iconSize -1
Change-Id: If34bd8d609a5df0f67689519abe9189cc4e44db0
Loading the dci icon file will consume some time. Modify the loading
icon file way to load its path, and add the corresponding cache var-
iable to speed up the loading speed.
Log:
Influence: dci icon theme
Change-Id: I44c593484da14a4c2757ac38321622ad83b031b0
This implementation is based on the icon theme specification and
the dci file specification. Relevant specifications including icon
naming, directory naming and icon search are formulated. For more
details, please refer to the icon topic specification document of
DSG.
icon name example:
// Correctly
* 1. example
* 2. org.deepin.app/example
* 3. org.deepin.app/icons/example
// Wrongful
* 1. example.dci
* 2. org.deepin.app/../icons/example.dci
* 3. ../example.dci
* 4. org.deepin.app/../icons/example.dci
...
icon theme paths:
* 1. DSG system path: DSG-DataDir + "/icons"
* 2. app resource path: :/dsg/icons
* 3. app built in path: :/dsg/built-in-icons
* 4. other custom paths.
Log:
Influence: None
Change-Id: If9b3cbe42b21319bfde4091f845aa1e28b7a27b4
The CurrentType is a special value that indicates the type which
is used currently. It is not an actual value, and can't be used to
process logic. So move the value to the end of Type enum.
Log:
Influence: Dci Icon's type
Change-Id: I08a2ffa70d63c33f8ba4818e1982d4bbc9127fc4
it's convenient for qml moved openUrl from dtkwidget to dtkgui.
Log:
Influence: dtkdeclarative relys on this commit.
Change-Id: I7f720b02e91467a2bfb2bd3608afba8ad0d12312
This macro registers enum type with the meta-object system.
Log:
Influence: qml access window's flags.
Change-Id: I9dfef86724a86c04b7a0fa4b36436464bd12d7da
When the iconsize parameter does not exist, we still expect
to draw the DCI icon instead of returning an error. Because
the icon passed in by the user already contains the size of
the icon.
The ok variable is not used. We need to use it as the judgment
condition for the success of integer conversion.
Log:
Influence: DCI Icons
Change-Id: I3a26102819542718af97aa8ff373b05cfc5de61f
(cherry picked from commit 58088867b060426cee52a7656a0986862e6ef8c9)
widgets and quick both use user manual,
so it is moved from DApplication.
Log:
Influence: dtkdeclarative relys on this commit.
Change-Id: Ie2a5fb7edffb9ceeee48d42ba1b396291a4e5539
if user has set windowradius, we do not set again when
DPlatformTheme::windowRadiusChanged emit.
Bug: https://pms.uniontech.com/bug-view-147219.html
Log: fix dock radius changed when set global windowradius
Influence: dock radius
Change-Id: Iba8226a67bbc5dfdac4151ab046725b3b1dca512