Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
158507d9
Commit
158507d9
authored
Mar 11, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add blue theme to GitLab
parent
85e3b25c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
1 deletion
+18
-1
app/assets/stylesheets/pages/profile.scss
app/assets/stylesheets/pages/profile.scss
+4
-0
app/assets/stylesheets/themes/ui_blue.scss
app/assets/stylesheets/themes/ui_blue.scss
+6
-0
app/views/profiles/design.html.haml
app/views/profiles/design.html.haml
+5
-0
lib/gitlab/theme.rb
lib/gitlab/theme.rb
+3
-1
No files found.
app/assets/stylesheets/pages/profile.scss
View file @
158507d9
...
...
@@ -80,6 +80,10 @@
&
.violet
{
background
:
#548
;
}
&
.blue
{
background
:
#2980b9
;
}
}
}
}
...
...
app/assets/stylesheets/themes/ui_blue.scss
0 → 100644
View file @
158507d9
/**
* Modern GitLab UI theme
*/
.ui_blue
{
@include
dark-theme
(
#BECDE9
,
#2980b9
,
#1970a9
,
#096099
);
}
app/views/profiles/design.html.haml
View file @
158507d9
...
...
@@ -33,6 +33,11 @@
.prev.violet
=
f
.
radio_button
:theme_id
,
5
Violet
=
label_tag
do
.prev.blue
=
f
.
radio_button
:theme_id
,
6
Blue
%br
.clearfix
...
...
lib/gitlab/theme.rb
View file @
158507d9
...
...
@@ -5,6 +5,7 @@ module Gitlab
MODERN
=
3
unless
const_defined?
(
:MODERN
)
GRAY
=
4
unless
const_defined?
(
:GRAY
)
COLOR
=
5
unless
const_defined?
(
:COLOR
)
BLUE
=
6
unless
const_defined?
(
:BLUE
)
def
self
.
css_class_by_id
(
id
)
themes
=
{
...
...
@@ -12,7 +13,8 @@ module Gitlab
MARS
=>
"ui_mars"
,
MODERN
=>
"ui_modern"
,
GRAY
=>
"ui_gray"
,
COLOR
=>
"ui_color"
COLOR
=>
"ui_color"
,
BLUE
=>
"ui_blue"
}
id
||=
Gitlab
.
config
.
gitlab
.
default_theme
...
...
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