Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lede 如何设置你的主题为默认主题呢? #428

Open
cjlhll opened this issue Jul 4, 2023 · 6 comments
Open

lede 如何设置你的主题为默认主题呢? #428

cjlhll opened this issue Jul 4, 2023 · 6 comments

Comments

@cjlhll
Copy link

cjlhll commented Jul 4, 2023

我修改了Makefile文件,设置了默认主题,是lede源码的那个版本,太难看了,怎么设置为你的呢?在线等。

@SpeedPartner
Copy link
Collaborator

SpeedPartner commented Jul 4, 2023

2024-12-29 更新:
注意事项1: 目前LEDE的LuCI为23.05, 以下方式不再有效
注意事项2: 此方法仅适用于更改回18.06 LuCI的LEDE,详见本issue下方讨论

1.进入LEDE源码目录
cd lede
2.将LEDE源码中的feeds.conf.default, 从23.05 LuCI更改回以前的18.06 LuCI (对调18.06和23.05 LuCI的注释)
sed -i '/^#src-git luci https:\/\/github.com\/coolsnowwolf\/luci$/s/^#//' feeds.conf.default && sed -i '/^src-git luci https:\/\/github.com\/coolsnowwolf\/luci\.git;openwrt-23\.05$/s/^/#/' feeds.conf.default
3.清理/删除之前下载的feeds源码, 以避免与23.05 LuCI的软件包冲突, 导致编译失败
./scripts/feeds clean
4.更新/重新下载包含18.06 LuCI的feeds
./scripts/feeds update -a
5.删除LEDE 18.06 LuCI中自带的旧版本Argon主题源码
rm -rf feeds/luci/themes/luci-theme-argon
6.拉取/克隆本主题18.06 LuCI分支的编译源码
git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git package/downloads/luci-theme-argon
7.安装所有已下载/更新的feeds软件包
./scripts/feeds install -a
8.修改LEDE中, 18.06 LuCI的默认主题, 位置: feeds/luci/collections/luci/Makefile :
sed -i 's/luci-theme-bootstrap/luci-theme-argon/' feeds/luci/collections/luci/Makefile
9.确认默认主题是否修改成功:
make menuconfig #确认 LuCI->Themes->luci-theme-argon 为默认标"*"

10.编译固件:
make -j1 V=s

@mcusee
Copy link

mcusee commented Oct 20, 2024

lede修改默认主题的文件好像变了,麻烦作者给看看,改一下方法。

@SpeedPartner
Copy link
Collaborator

SpeedPartner commented Oct 20, 2024

重要更新:
2024-10-17 coolsnowwolf/lede@e2ebf13 ,LEDE已将LuCI正式升级为23.05(兼容lua的版本),虽然已兼容18.06(lua)的部分应用,但是18.06的主题已不再兼容.
如果还需要使用18.06分支的主题,请在编译固件前修改LEDE源码中feeds.conf.default,
将第二行#src-git luci https://github.com/coolsnowwolf/luci的注释符号"#"删除,
再将第三行的src-git luci https://github.com/coolsnowwolf/luci的前面插入注释符号"#";

也就是需要将:

#src-git luci https://github.com/coolsnowwolf/luci
src-git luci https://github.com/coolsnowwolf/luci.git;openwrt-23.05

更改为:

src-git luci https://github.com/coolsnowwolf/luci
#src-git luci https://github.com/coolsnowwolf/luci.git;openwrt-23.05

将LEDE编译使用的LuCI源,更改回以前的18.06版本即可.


或者在LEDE源码路径下,使用以下命令直接更改LuCI源:
sed -i '/^#src-git luci https:\/\/github.com\/coolsnowwolf\/luci$/s/^#//' feeds.conf.default && sed -i '/^src-git luci https:\/\/github.com\/coolsnowwolf\/luci\.git;openwrt-23\.05$/s/^/#/' feeds.conf.default

@SpeedPartner SpeedPartner reopened this Oct 20, 2024
@GreatMichaelLee
Copy link

重要更新: 2024-10-17 coolsnowwolf/lede@e2ebf13 ,LEDE已将LuCI正式升级为23.05(兼容lua的版本),虽然已兼容18.06(lua)的部分应用,但是18.06的主题已不再兼容. 如果还需要使用18.06分支的主题,请在编译固件前修改LEDE源码中feeds.conf.default, 将第二行#src-git luci https://github.com/coolsnowwolf/luci的注释符号"#"删除, 再将第三行的src-git luci https://github.com/coolsnowwolf/luci的前面插入注释符号"#";

也就是需要将:

#src-git luci https://github.com/coolsnowwolf/luci
src-git luci https://github.com/coolsnowwolf/luci.git;openwrt-23.05

更改为:

src-git luci https://github.com/coolsnowwolf/luci
#src-git luci https://github.com/coolsnowwolf/luci.git;openwrt-23.05

将LEDE编译使用的LuCI源,更改回以前的18.06版本即可.

或者在LEDE源码路径下,使用以下命令直接更改LuCI源: sed -i '/^#src-git luci https:\/\/github.com\/coolsnowwolf\/luci$/s/^#//' feeds.conf.default && sed -i '/^src-git luci https:\/\/github.com\/coolsnowwolf\/luci\.git;openwrt-23\.05$/s/^/#/' feeds.conf.default

我试了使用lede luci的23.05分支配合argon的master分支和argon工具的master分支,发现有些问题,第一个问题是默认起来就是暗黑色,而且字体有些怪,第二个argon工具修改主题背景无法生效,即修改为高亮或者bing并不起效,依然是暗黑,第三个是有些应用菜单显示不出来,比如openvpn/softether等,passwall也有部分tab变成英文了。麻烦作者看看是lede侧luci的问题呢还是argon的问题呀 @jerrykuku

@jqxsjm
Copy link

jqxsjm commented Jan 12, 2025

设置默认主题
sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci/Makefile
sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci-light/Makefile
sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci-nginx/Makefile
sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci-ssl-nginx/Makefile
这四条都执行就可以了,之前执行一条不行了。

@SpeedPartner
Copy link
Collaborator

设置默认主题 sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci/Makefile sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci-light/Makefile sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci-nginx/Makefile sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci-ssl-nginx/Makefile 这四条都执行就可以了,之前执行一条不行了。

没错, 这是目前23.05 LuCI下, 编译master分支主题时, 默认主题更改方式.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants