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 > │
└───────────────────────────────────────────────────────────────────────────────────────┘
仅此记录