feat: enhance pre-push hook to include remote URL check and improve format check messaging

This commit is contained in:
Tunglies
2025-06-18 18:49:48 +08:00
parent f3ad6cee41
commit 357b64e9a0
3 changed files with 25 additions and 7 deletions

View File

@@ -165,7 +165,8 @@ export const useCustomTheme = () => {
const rootEle = document.documentElement;
if (rootEle) {
const backgroundColor = mode === "light" ? "#ECECEC" : dt.background_color;
const backgroundColor =
mode === "light" ? "#ECECEC" : dt.background_color;
const selectColor = mode === "light" ? "#f5f5f5" : "#3E3E3E";
const scrollColor = mode === "light" ? "#90939980" : "#555555";
const dividerColor =
@@ -184,9 +185,18 @@ export const useCustomTheme = () => {
alpha(muiTheme.palette.primary.main, 0.1),
);
// 添加CSS变量
rootEle.style.setProperty("--window-border-color", mode === "light" ? "#cccccc" : "#1E1E1E");
rootEle.style.setProperty("--scrollbar-bg", mode === "light" ? "#f1f1f1" : "#2E303D");
rootEle.style.setProperty("--scrollbar-thumb", mode === "light" ? "#c1c1c1" : "#555555");
rootEle.style.setProperty(
"--window-border-color",
mode === "light" ? "#cccccc" : "#1E1E1E",
);
rootEle.style.setProperty(
"--scrollbar-bg",
mode === "light" ? "#f1f1f1" : "#2E303D",
);
rootEle.style.setProperty(
"--scrollbar-thumb",
mode === "light" ? "#c1c1c1" : "#555555",
);
}
let styleElement = document.querySelector("style#verge-theme");

View File

@@ -502,7 +502,7 @@ const Layout = () => {
className={`${OS} layout`}
style={{
borderTopLeftRadius: "0px",
borderTopRightRadius: "0px"
borderTopRightRadius: "0px",
}}
onContextMenu={(e) => {
if (