Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
51354b02
Commit
51354b02
authored
Jul 02, 2014
by
techird
Browse files
Options
Browse Files
Download
Plain Diff
添加几个皮肤
parents
132599f0
93ba7f99
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
61 deletions
+80
-61
zh-cn.js
lang/zh-cn/zh-cn.js
+6
-1
outline.js
src/module/outline.js
+2
-2
fresh.js
src/theme/fresh.js
+72
-58
No files found.
lang/zh-cn/zh-cn.js
View file @
51354b02
...
...
@@ -6,7 +6,12 @@ KityMinder.LANG['zh-cn'] = {
'theme'
:
{
'default'
:
'脑图经典'
,
'snow'
:
'温柔冷光'
,
'fresh'
:
'文艺小清新'
'fresh-red'
:
'清新红'
,
'fresh-soil'
:
'泥土'
,
'fresh-green'
:
'自然'
,
'fresh-blue'
:
'天空'
,
'fresh-purple'
:
'浪漫'
,
'fresh-pink'
:
'可爱'
},
'maintopic'
:
'中心主题'
,
'topic'
:
'分支主题'
,
...
...
src/module/outline.js
View file @
51354b02
...
...
@@ -34,8 +34,8 @@ var OutlineRenderer = kity.createClass('OutlineRenderer', {
.
setPosition
(
outlineBox
.
x
,
outlineBox
.
y
)
.
setSize
(
outlineBox
.
width
,
outlineBox
.
height
)
.
setRadius
(
node
.
getStyle
(
'radius'
))
.
fill
(
node
.
getStyle
(
prefix
+
'background'
))
.
stroke
(
node
.
getStyle
(
prefix
+
'stroke'
),
.
fill
(
node
.
getStyle
(
prefix
+
'background'
)
||
node
.
getStyle
(
'background'
)
)
.
stroke
(
node
.
getStyle
(
prefix
+
'stroke'
||
node
.
getStyle
(
'stroke'
)
),
node
.
getStyle
(
prefix
+
'stroke-width'
));
return
outlineBox
;
...
...
src/theme/fresh.js
View file @
51354b02
KityMinder
.
registerTheme
(
'fresh'
,
{
(
function
()
{
function
hsl
(
h
,
s
,
l
)
{
return
kity
.
Color
.
createHSL
(
h
,
s
,
l
);
}
'name'
:
'文艺小清新'
,
function
generate
(
h
)
{
return
{
'background'
:
'#fefefe'
,
'background'
:
'white'
,
'root-color'
:
'#fff'
,
'root-background'
:
'#73bf75'
,
'root-selected-background'
:
'#73bf75'
,
'root-color'
:
'white'
,
'root-background'
:
hsl
(
h
,
37
,
60
),
'root-stroke'
:
'none'
,
'root-font-size'
:
16
,
'root-padding'
:
[
12
,
24
],
...
...
@@ -15,10 +17,9 @@ KityMinder.registerTheme('fresh', {
'root-space'
:
10
,
'main-color'
:
'#000'
,
'main-background'
:
'#f3f9f3'
,
'main-selected-background'
:
'#f3f9f3'
,
'main-stroke'
:
'#beddbf'
,
'main-color'
:
'black'
,
'main-background'
:
hsl
(
h
,
33
,
95
),
'main-stroke'
:
hsl
(
h
,
37
,
60
),
'main-stroke-width'
:
1
,
'main-font-size'
:
16
,
'main-padding'
:
[
6
,
20
],
...
...
@@ -28,7 +29,6 @@ KityMinder.registerTheme('fresh', {
'sub-color'
:
'black'
,
'sub-background'
:
'none'
,
'sub-selected-background'
:
'none'
,
'sub-stroke'
:
'none'
,
'sub-font-size'
:
12
,
'sub-padding'
:
[
5
,
10
],
...
...
@@ -37,22 +37,36 @@ KityMinder.registerTheme('fresh', {
'sub-radius'
:
5
,
'sub-space'
:
5
,
'connect-color'
:
'#80bf82'
,
'connect-width'
:
2
,
'connect-color'
:
hsl
(
h
,
37
,
60
)
,
'connect-width'
:
1
,
'connect-radius'
:
5
,
'selected-stroke'
:
'#437152'
,
'selected-stroke'
:
hsl
(
h
,
26
,
30
)
,
'selected-stroke-width'
:
'3'
,
'marquee-background'
:
'rgba(154,255,156,.1)'
,
'marquee-stroke'
:
'#73bf75'
,
'marquee-background'
:
hsl
(
h
,
100
,
80
).
set
(
'a'
,
0.1
)
,
'marquee-stroke'
:
hsl
(
h
,
37
,
60
)
,
'drop-hint-color'
:
'#437152'
,
'sub-drop-hint-width'
:
2
,
'main-drop-hint-width'
:
4
,
'root-drop-hint-width'
:
4
,
'drop-hint-color'
:
hsl
(
h
,
26
,
35
),
'drop-hint-width'
:
5
,
'order-hint-area-color'
:
'rgba(0, 255, 0, .5)'
,
'order-hint-path-color'
:
'#0f0'
,
'order-hint-area-color'
:
hsl
(
h
,
100
,
95
).
set
(
'a'
,
0.5
)
,
'order-hint-path-color'
:
hsl
(
h
,
100
,
25
)
,
'order-hint-path-width'
:
2
});
\ No newline at end of file
};
}
var
plans
=
{
red
:
0
,
soil
:
25
,
green
:
122
,
blue
:
204
,
purple
:
246
,
pink
:
334
};
for
(
var
name
in
plans
)
{
KityMinder
.
registerTheme
(
'fresh-'
+
name
,
generate
(
plans
[
name
]));
}
})();
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment