diff --git a/app/assets/images/sample_theme.jpg b/app/assets/images/sample_theme.jpg new file mode 100755 index 00000000..03945979 Binary files /dev/null and b/app/assets/images/sample_theme.jpg differ diff --git a/app/assets/javascripts/orbitdesktop.js b/app/assets/javascripts/orbitdesktop.js index 2c79bb90..eb2ed07c 100755 --- a/app/assets/javascripts/orbitdesktop.js +++ b/app/assets/javascripts/orbitdesktop.js @@ -292,8 +292,10 @@ var orbitDesktop = function(dom){ o.currenthtml = target; o.currentface = "settings"; var bindHandlers = function(){ - $("select#change_theme").change(function(){ - o.changeTheme($(this).val()); + $(".theme_list > li").click(function(){ + o.changeTheme($(this).find('.theme_name').text()); + $(".theme_list > li").removeClass('thmc1').data('clicked',null); + $(this).addClass('thmc1').data('clicked',true); }); $('.tinycanvas').each(function(){ @@ -312,9 +314,9 @@ var orbitDesktop = function(dom){ var target = $(this).attr('href'); $anchor - .removeClass('thmc2 thmtxt admtxt') - .addClass('admtxt'); - $(this).toggleClass('thmc2 thmtxt admtxt'); + .removeClass('thmc2 thmtxt admtxt admbg') + .addClass('admtxt admbg'); + $(this).toggleClass('thmc2 thmtxt admtxt admbg'); $tabcontent.hide(); $(target).show(); $('.tinycanvas').tinyscrollbar_update(); @@ -330,6 +332,23 @@ var orbitDesktop = function(dom){ }); + $('.theme_list li').hover(function(){ + $(this) + .addClass('thmc1') + .find('.theme_name') + .addClass('thmtxt'); + }, function(){ + var c = 'thmc1', + t = 'thmtxt'; + if( $(this).data('clicked') ){ + t = '', c = ''; + } + $(this) + .removeClass(c) + .find('.theme_name') + .removeClass(t); + }); + } // if(!o.desktopData[o.currentface]){ $(o.contentHolder).empty().load("/desktop/"+target,function(){ diff --git a/app/assets/stylesheets/desktopmain.css b/app/assets/stylesheets/desktopmain.css index 545d69cc..63fb12d1 100644 --- a/app/assets/stylesheets/desktopmain.css +++ b/app/assets/stylesheets/desktopmain.css @@ -1,4 +1,3 @@ -@import url(http://fonts.googleapis.com/css?family=Cuprum); /* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) @@ -247,10 +246,24 @@ a:focus { outline: none; } .s_tab ul { overflow: hidden; } .s_tab li { float: left; } .s_tab a { display: block; } +.s_tab .admbg { background-color: #f0f0f0; } .st_c { display: none; } .st_c:first-child { display: block; } /* Setting Page */ +.theme_list {} +.theme_list li { + display: inline-block; + vertical-align: top; + margin: 0 0 24px 0; + padding: 6px 0px; + width: 132px; + text-align: center; + cursor: pointer + } +.theme_thumb { border: solid 1px #fff; width: 120px; margin: 0 auto; } +.theme_thumb img { display: block; } +.theme_name { font-size: 15px; padding: 8px 6px; display: block; } .theme_preview { width: 528px; height: 150px; line-height: 36px; font-size: 15px; } .theme_plate { overflow: hidden; } .theme_plate > div { float: left; margin-right: 12px; } diff --git a/app/assets/stylesheets/jquery.miniColors.css b/app/assets/stylesheets/jquery.miniColors.css index bfc06d39..831da6f8 100755 --- a/app/assets/stylesheets/jquery.miniColors.css +++ b/app/assets/stylesheets/jquery.miniColors.css @@ -19,8 +19,8 @@ } .miniColors-selector.black { - background: #000; - border-color: #000; + background: #222; + border-color: #222; } .miniColors-colors { diff --git a/app/assets/stylesheets/style.css.erb b/app/assets/stylesheets/style.css.erb index d2e33b04..0440dcde 100644 --- a/app/assets/stylesheets/style.css.erb +++ b/app/assets/stylesheets/style.css.erb @@ -1,3 +1,4 @@ +@import url(http://fonts.googleapis.com/css?family=Cuprum); @font-face{ font-family: 'WebSymbolsRegular'; src: url(<%= asset_path 'websymbols-regular-webfont.eot' %>); diff --git a/app/views/desktop/settings.html.erb b/app/views/desktop/settings.html.erb index 293c80af..8f0fda2e 100644 --- a/app/views/desktop/settings.html.erb +++ b/app/views/desktop/settings.html.erb @@ -21,14 +21,32 @@