问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

如何修改openstack dashboard图标

发布网友 发布时间:2022-04-22 12:50

我来回答

1个回答

热心网友 时间:2022-04-14 07:19

How To Custom Brand The OpenStack “Horizon” Dashboard
by preston.lee on May 9th, 2012
I’m deploying OpenStack “Essex”on Ubuntu Server12.04, and have the openstack-dashboardpackage installed to provide the web-based “Horizon” GUI component newly added for the Essex release. Canonical also provides an openstack-dashboard-ubuntu-themepackage that brands the Python-based Django GUI. Despite that the last major Canonical-maintained packages based on the OpenStack “Diablo” release in Ubuntu 11.10 did notinclude an administrative GUI, Horizon — as a standalone component — has been very stable for a mainstream debut. In the future, though, I’d like to see a quick and easy way to change the default branding to use your own logo, colors, and titles using only the GUI’s administrative screens.
The horizon documents briefly mention branding customizationto give you a head start, but you probably want more specific steps. Here’s my custom-branded Horizon dashboard with custom colors, logo, and site title:

Once you know where to make the appropriate changes, it’s super simple. Step-by-step:
Create a graphical logo with a transparent background. The text “TGen Cloud” in this example is actually rendered via .png files of multiple sizes I created with a graphics program. I used a 200×27 for the logged-in banner graphic, and 365×50 for the login screen graphic.
Set the HTML title (shown at the top of the browser window) by adding the following line to /etc/openstack-dashboard/local_settings.pySITE_BRANDING = "Example, Inc. Cloud"
Upload your new graphic files to:/usr/share/openstack-dashboard/openstack_dashboard/static/dashboard/img/
Create a new CSS stylesheet — we’ll call ours custom.css — in the directory:/usr/share/openstack-dashboard/openstack_dashboard/static/dashboard/css/
Edit your CSS file using the following as a starting point for customization, which simply overrides the Ubuntu customizations made in the ubuntu.css file. Change the colors and image file names as appropriate, though the relative directory paths should be the same./** New theme colors for dashboard that override the defaults:* dark blue: #355796 / rgb(53, 87, 150)* light blue: #BAD3E1 / rgb(186, 211, 225)** By Preston Lee <plee@tgen.org>*/h1.brand {background: #355796 repeat-x top left;border-bottom: 2px solid #BAD3E1;}h1.brand a {background: url(../img/my_cloud_logo_small.png) top left no-repeat;}#splash .login {background: #355796 url(../img/my_cloud_logo_medium.png) no-repeat center 35px;}#splash .login .modal-header {border-top: 1px solid #BAD3E1;}.btn-primary {background-image: none !important;background-color: #355796 !important;border: none !important;box-shadow: none;}.btn-primary:hover,.btn-primary:active {border: none;box-shadow: none;background-color: #BAD3E1 !important;text-decoration: none;}
Open the following HTML template in an editor:/usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html
Add a line to include your new stylesheet: (I’ve highlighted the new line in bold.)... <link href='http://blog.163.com/zhaoweibiao87@126/blog/{{ STATIC_URL }}bootstrap/css/bootstrap.min.css' media='screen' rel='stylesheet' /> <link href='http://blog.163.com/zhaoweibiao87@126/blog/{{ STATIC_URL }}dashboard/css/{% choose_css %}' media='screen' rel='stylesheet' /> <link href='http://blog.163.com/zhaoweibiao87@126/blog/{{ STATIC_URL }}dashboard/css/custom.css' media='screen' rel='stylesheet' />...
Restart apache just for good measure:sudo service apache2 restart
Reload the dashboard in your browser and fine tune your CSS appropriate.
You’re done!
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
手机系统怎么更新(手机系统怎么更新到最新版本) 手机操作系统怎么升级最新版本呢 ...一下有没有那种模仿声音的东西,自己给老班打电话时发出的时成年人声... ...经纬线的说法,正确的是( )A.纬线是与地轴垂直并环绕地球的半圆B... 下列有关纬线的说法,正确的是( )A.所有纬线长度都相等B.纬线都是半 ... 下列有关经纬线的说法,错误的是( )A.地球仪上能画无数条经线B.所有纬 ... 关于纬线和纬度的叙述,不正确的是( )A.纬线指示南北方向B.北纬用“N... 纬线的特征中说法错误的是( ) A.所有纬线相互平行 B.纬线等长 C.同一纬... 下列关于纬线的说法,不正确的是( )A.所有纬线都自成圆圈B.纬线长度都... 关于纬线的说法,错误的是( ) A.纬度越高,纬线越短 B.纬线都是圆圈 C... CloudStack和OpenStack的区别在哪呢? openstack dashboard 怎么创建镜像 openstack dashboard安装在哪个节点 一年级垃圾分类减量章家长评定怎样写 openstack的dashboard用户名和密码忘了,怎样解决 用devstack安装openstack出错了,求助 如何在openstack的dashboard上开启域的配置 如何构建openstack-dashboard开发环境 openstack 部署 命令行正常,dashboard 出错 什么原因 如何修改openstack的dashboard访问页的端口 快剪辑编辑视频怎么删除片段 充气娃娃硅胶的好还是充气的好 充气娃娃和实体娃娃哪个好? 充气娃娃怎么清洗 能简单介绍一下充气娃娃的历史吗? 哪里卖的充气娃娃最好? 香菇青菜炒木耳怎么做好吃 干香菇可以跟木耳一起炒吗? 如何做香菇木耳炒绍菜 木耳香菇烧法 垃圾分类的好处 小学生 如何在windows浏览器上面打开openstack仪表板 用devstack安装openstack出错了,求助 什么是OpenStack 如何对openstack进行监控 小学生家庭垃圾分类公约怎么写 薯片是小朋友们最爱的零食,薯片的做法是怎样的? 薯片的正确做法 薯片的做法是什么? 薯片的制作过程 墨汁鬼伞是什么蘑菇 家庭薯片的制作方法 晶粒鬼伞和墨汁鬼伞的区别? 怎么做薯片的做法 万科集团应聘业务员一职对应届大学生有什么要求 墨汁鬼伞菌怎么去除 房地产行业需要什么专业人才? 墨汁鬼伞的分布地区 有图,洗手台下长的有点像墨汁鬼伞,有异臭味,是什么,如何除去? 大专生进设计院有可能吗?