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
2ce29df0
Commit
2ce29df0
authored
Nov 17, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add compact mode
parent
6f062454
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
120 additions
and
108 deletions
+120
-108
zh-cn.js
lang/zh-cn/zh-cn.js
+2
-0
default.js
src/theme/default.js
+60
-56
snow.js
src/theme/snow.js
+58
-52
No files found.
lang/zh-cn/zh-cn.js
View file @
2ce29df0
...
...
@@ -8,7 +8,9 @@ KityMinder.LANG['zh-cn'] = {
},
'theme'
:
{
'classic'
:
'脑图经典'
,
'classic-compact'
:
'紧凑经典'
,
'snow'
:
'温柔冷光'
,
'snow-compact'
:
'紧凑冷光'
,
'fish'
:
'鱼骨图'
,
'wire'
:
'线框'
,
'fresh-red'
:
'清新红'
,
...
...
src/theme/default.js
View file @
2ce29df0
KityMinder
.
registerTheme
(
'classic'
,
{
'background'
:
'#3A4144 url(ui/theme/default/images/grid.png) repeat'
,
'root-color'
:
'#430'
,
'root-background'
:
'#e9df98'
,
'root-stroke'
:
'#e9df98'
,
'root-font-size'
:
24
,
'root-padding'
:
[
15
,
25
],
'root-margin'
:
[
30
,
100
],
'root-radius'
:
30
,
'root-space'
:
10
,
'root-shadow'
:
'rgba(0, 0, 0, .25)'
,
'main-color'
:
'#333'
,
'main-background'
:
'#a4c5c0'
,
'main-stroke'
:
'#a4c5c0'
,
'main-font-size'
:
16
,
'main-padding'
:
[
6
,
20
],
'main-margin'
:
20
,
'main-radius'
:
10
,
'main-space'
:
5
,
'main-shadow'
:
'rgba(0, 0, 0, .25)'
,
'sub-color'
:
'white'
,
'sub-background'
:
'transparent'
,
'sub-stroke'
:
'none'
,
'sub-font-size'
:
12
,
'sub-padding'
:
[
5
,
10
],
'sub-margin'
:
[
15
,
20
],
'sub-tree-margin'
:
30
,
'sub-radius'
:
5
,
'sub-space'
:
5
,
'connect-color'
:
'white'
,
'connect-width'
:
2
,
'main-connect-width'
:
3
,
'connect-radius'
:
5
,
'selected-background'
:
'rgb(254, 219, 0)'
,
'selected-stroke'
:
'rgb(254, 219, 0)'
,
'selected-color'
:
'black'
,
'marquee-background'
:
'rgba(255,255,255,.3)'
,
'marquee-stroke'
:
'white'
,
'drop-hint-color'
:
'yellow'
,
'sub-drop-hint-width'
:
2
,
'main-drop-hint-width'
:
4
,
'root-drop-hint-width'
:
4
,
'order-hint-area-color'
:
'rgba(0, 255, 0, .5)'
,
'order-hint-path-color'
:
'#0f0'
,
'order-hint-path-width'
:
1
,
'text-selection-color'
:
'rgb(27,171,255)'
,
'line-height'
:
1.5
[
'classic'
,
'classic-compact'
].
forEach
(
function
(
name
)
{
var
compact
=
name
==
'classic-compact'
;
KityMinder
.
registerTheme
(
name
,
{
'background'
:
'#3A4144 url(ui/theme/default/images/grid.png) repeat'
,
'root-color'
:
'#430'
,
'root-background'
:
'#e9df98'
,
'root-stroke'
:
'#e9df98'
,
'root-font-size'
:
24
,
'root-padding'
:
compact
?
[
10
,
25
]
:
[
15
,
25
],
'root-margin'
:
compact
?
[
15
,
25
]
:
[
30
,
100
],
'root-radius'
:
30
,
'root-space'
:
10
,
'root-shadow'
:
'rgba(0, 0, 0, .25)'
,
'main-color'
:
'#333'
,
'main-background'
:
'#a4c5c0'
,
'main-stroke'
:
'#a4c5c0'
,
'main-font-size'
:
16
,
'main-padding'
:
compact
?
[
5
,
15
]
:
[
6
,
20
],
'main-margin'
:
compact
?
[
5
,
10
]
:
20
,
'main-radius'
:
10
,
'main-space'
:
5
,
'main-shadow'
:
'rgba(0, 0, 0, .25)'
,
'sub-color'
:
'white'
,
'sub-background'
:
'transparent'
,
'sub-stroke'
:
'none'
,
'sub-font-size'
:
12
,
'sub-padding'
:
[
5
,
10
],
'sub-margin'
:
compact
?
[
5
,
10
]
:
[
15
,
20
],
'sub-tree-margin'
:
30
,
'sub-radius'
:
5
,
'sub-space'
:
5
,
'connect-color'
:
'white'
,
'connect-width'
:
2
,
'main-connect-width'
:
3
,
'connect-radius'
:
5
,
'selected-background'
:
'rgb(254, 219, 0)'
,
'selected-stroke'
:
'rgb(254, 219, 0)'
,
'selected-color'
:
'black'
,
'marquee-background'
:
'rgba(255,255,255,.3)'
,
'marquee-stroke'
:
'white'
,
'drop-hint-color'
:
'yellow'
,
'sub-drop-hint-width'
:
2
,
'main-drop-hint-width'
:
4
,
'root-drop-hint-width'
:
4
,
'order-hint-area-color'
:
'rgba(0, 255, 0, .5)'
,
'order-hint-path-color'
:
'#0f0'
,
'order-hint-path-width'
:
1
,
'text-selection-color'
:
'rgb(27,171,255)'
,
'line-height'
:
1.5
});
});
\ No newline at end of file
src/theme/snow.js
View file @
2ce29df0
KityMinder
.
registerTheme
(
'snow'
,
{
'background'
:
'#3A4144 url(ui/theme/default/images/grid.png) repeat'
,
'root-color'
:
'#430'
,
'root-background'
:
'#e9df98'
,
'root-stroke'
:
'#e9df98'
,
'root-font-size'
:
24
,
'root-padding'
:
[
15
,
25
],
'root-margin'
:
30
,
'root-radius'
:
5
,
'root-space'
:
10
,
'root-shadow'
:
'rgba(0, 0, 0, .25)'
,
'main-color'
:
'#333'
,
'main-background'
:
'#a4c5c0'
,
'main-stroke'
:
'#a4c5c0'
,
'main-font-size'
:
16
,
'main-padding'
:
[
6
,
20
],
'main-margin'
:
[
20
,
40
],
'main-radius'
:
5
,
'main-space'
:
5
,
'main-shadow'
:
'rgba(0, 0, 0, .25)'
,
'sub-color'
:
'black'
,
'sub-background'
:
'white'
,
'sub-stroke'
:
'white'
,
'sub-font-size'
:
12
,
'sub-padding'
:
[
5
,
10
],
'sub-margin'
:
[
10
,
20
],
'sub-radius'
:
5
,
'sub-space'
:
5
,
'connect-color'
:
'white'
,
'connect-width'
:
2
,
'main-connect-width'
:
3
,
'connect-radius'
:
5
,
'selected-background'
:
'rgb(254, 219, 0)'
,
'selected-stroke'
:
'rgb(254, 219, 0)'
,
'marquee-background'
:
'rgba(255,255,255,.3)'
,
'marquee-stroke'
:
'white'
,
'drop-hint-color'
:
'yellow'
,
'drop-hint-width'
:
4
,
'order-hint-area-color'
:
'rgba(0, 255, 0, .5)'
,
'order-hint-path-color'
:
'#0f0'
,
'order-hint-path-width'
:
1
,
'text-selection-color'
:
'rgb(27,171,255)'
,
'line-height'
:
1.5
[
'snow'
,
'snow-compact'
].
forEach
(
function
(
name
)
{
var
compact
=
name
==
'snow-compact'
;
KityMinder
.
registerTheme
(
name
,
{
'background'
:
'#3A4144 url(ui/theme/default/images/grid.png) repeat'
,
'root-color'
:
'#430'
,
'root-background'
:
'#e9df98'
,
'root-stroke'
:
'#e9df98'
,
'root-font-size'
:
24
,
'root-padding'
:
compact
?
[
5
,
10
]
:
[
15
,
25
],
'root-margin'
:
compact
?
15
:
30
,
'root-radius'
:
5
,
'root-space'
:
10
,
'root-shadow'
:
'rgba(0, 0, 0, .25)'
,
'main-color'
:
'#333'
,
'main-background'
:
'#a4c5c0'
,
'main-stroke'
:
'#a4c5c0'
,
'main-font-size'
:
16
,
'main-padding'
:
compact
?
[
4
,
10
]
:
[
6
,
20
],
'main-margin'
:
compact
?
[
5
,
10
]
:
[
20
,
40
],
'main-radius'
:
5
,
'main-space'
:
5
,
'main-shadow'
:
'rgba(0, 0, 0, .25)'
,
'sub-color'
:
'black'
,
'sub-background'
:
'white'
,
'sub-stroke'
:
'white'
,
'sub-font-size'
:
12
,
'sub-padding'
:
[
5
,
10
],
'sub-margin'
:
compact
?
[
5
,
10
]
:
[
10
,
20
],
'sub-radius'
:
5
,
'sub-space'
:
5
,
'connect-color'
:
'white'
,
'connect-width'
:
2
,
'main-connect-width'
:
3
,
'connect-radius'
:
5
,
'selected-background'
:
'rgb(254, 219, 0)'
,
'selected-stroke'
:
'rgb(254, 219, 0)'
,
'marquee-background'
:
'rgba(255,255,255,.3)'
,
'marquee-stroke'
:
'white'
,
'drop-hint-color'
:
'yellow'
,
'drop-hint-width'
:
4
,
'order-hint-area-color'
:
'rgba(0, 255, 0, .5)'
,
'order-hint-path-color'
:
'#0f0'
,
'order-hint-path-width'
:
1
,
'text-selection-color'
:
'rgb(27,171,255)'
,
'line-height'
:
1.5
});
});
\ 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