openwrt修改默认主题

openwrt默认主题为luci-theme-bootstrap
可在web界面进行修改,也可直接在代码中修改配置信息,默认自己的主题

  • 修改前:openwrt默认luci主题luci-theme-bootstrap
 .config - OpenWrt Configuration
 > LuCI > 4. Themes ──────────────────────────────────────────────────────────────────────────────
  ┌──────────────────────────────────────── 4. Themes ─────────────────────────────────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty submenus ----).    │  
  │  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M> modularizes    │  
  │  features.  Press <Esc><Esc> to exit, <?> for Help, </> for Search.  Legend: [*] built-in  │  
  │  [ ] excluded  <M> module  < > module capable                                              │  
  │ ┌────────────────────────────────────────────────────────────────────────────────────────┐ │  
  │ │         <*> luci-theme-argon............................................. Argon Theme  │ │  
  │ │         -*- luci-theme-bootstrap........................... Bootstrap Theme (default)  │ │  
  │ │         < > luci-theme-material....................................... Material Theme  │ │  
  │ │         < > luci-theme-openwrt................................ LuCI OpenWrt.org theme  │ │  
  │ │                                                                                        │ │  
  │ │                                                                                        │ │  
  │ │                                                                                        │ │  
  │ └────────────────────────────────────────────────────────────────────────────────────────┘ │  
  ├────────────────────────────────────────────────────────────────────────────────────────────┤  
  │                  <Select>    < Exit >    < Help >    < Save >    < Load >                  │  
  └────────────────────────────────────────────────────────────────────────────────────────────┘  
  • 进入路径openwrt/feeds/luci/collections/luci,修改Makefile(适用于openwrt版本19.07,不同的版本,会稍微不同)

    将LUCI_DESCRIPTION中,bootstrap 替换为 argon
    将LUCI_DEPENDS中,+luci-theme-bootstrap 替换为 +luci-theme-argon

include $(TOPDIR)/rules.mk

LUCI_TYPE:=col
LUCI_BASENAME:=luci

LUCI_TITLE:=LuCI interface with Uhttpd as Webserver (default)
LUCI_DESCRIPTION:=Standard OpenWrt set including full admin with ppp support and the default argon theme
LUCI_DEPENDS:= \
	+uhttpd +luci-mod-admin-full +luci-theme-argon \
	+luci-app-firewall +luci-app-opkg +luci-proto-ppp +libiwinfo-lua +IPV6:luci-proto-ipv6 \
	+rpcd-mod-rrdns

PKG_LICENSE:=Apache-2.0

include ../../luci.mk

# call BuildPackage - OpenWrt buildroot signature
  • 保存,重新进入menuconfig
    此时默认luci主题已经更改为luci-theme-argon
 .config - OpenWrt Configuration
 > LuCI > 4. Themes ─────────────────────────────────────────────────────────────────────────
  ┌────────────────────────────────────── 4. Themes ──────────────────────────────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty submenus      │  
  │  ----).  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M>   │  
  │  modularizes features.  Press <Esc><Esc> to exit, <?> for Help, </> for Search.       │  
  │  Legend: [*] built-in  [ ] excluded  <M> module  < > module capable                   │  
  │ ┌───────────────────────────────────────────────────────────────────────────────────┐ │  
  │ │      -*- luci-theme-argon............................................. Argon Theme│ │  
  │ │      <*> luci-theme-bootstrap........................... Bootstrap Theme (default)│ │  
  │ │      < > luci-theme-material....................................... Material Theme│ │  
  │ │      < > luci-theme-openwrt................................ LuCI OpenWrt.org theme│ │  
  │ │                                                                                   │ │  
  │ │                                                                                   │ │  
  │ │                                                                                   │ │  
  │ └───────────────────────────────────────────────────────────────────────────────────┘ │  
  ├───────────────────────────────────────────────────────────────────────────────────────┤  
  │               <Select>    < Exit >    < Help >    < Save >    < Load >                │  
  └───────────────────────────────────────────────────────────────────────────────────────┘  


仅此记录

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值