Преглед на файлове

fix: icon button color inherit

GyDi преди 3 години
родител
ревизия
6ade0b2b1a
променени са 2 файла, в които са добавени 18 реда и са изтрити 2 реда
  1. 9 1
      src/components/proxy/proxy-global.tsx
  2. 9 1
      src/components/proxy/proxy-group.tsx

+ 9 - 1
src/components/proxy/proxy-global.tsx

@@ -124,18 +124,25 @@ const ProxyGlobal = (props: Props) => {
         <IconButton
           size="small"
           title="location"
+          color="inherit"
           onClick={() => onLocation(true)}
         >
           <MyLocationRounded />
         </IconButton>
 
-        <IconButton size="small" title="delay check" onClick={onCheckAll}>
+        <IconButton
+          size="small"
+          title="delay check"
+          color="inherit"
+          onClick={onCheckAll}
+        >
           <NetworkCheckRounded />
         </IconButton>
 
         <IconButton
           size="small"
           title="proxy detail"
+          color="inherit"
           onClick={() => setShowType(!showType)}
         >
           {showType ? <VisibilityRounded /> : <VisibilityOffRounded />}
@@ -144,6 +151,7 @@ const ProxyGlobal = (props: Props) => {
         <IconButton
           size="small"
           title="filter"
+          color="inherit"
           onClick={() => setShowFilter(!showFilter)}
         >
           {showFilter ? <FilterAltRounded /> : <FilterAltOffRounded />}

+ 9 - 1
src/components/proxy/proxy-group.tsx

@@ -149,18 +149,25 @@ const ProxyGroup = ({ group }: Props) => {
           <IconButton
             size="small"
             title="location"
+            color="inherit"
             onClick={() => onLocation(true)}
           >
             <MyLocationRounded />
           </IconButton>
 
-          <IconButton size="small" title="delay check" onClick={onCheckAll}>
+          <IconButton
+            size="small"
+            title="delay check"
+            color="inherit"
+            onClick={onCheckAll}
+          >
             <NetworkCheckRounded />
           </IconButton>
 
           <IconButton
             size="small"
             title="proxy detail"
+            color="inherit"
             onClick={() => setShowType(!showType)}
           >
             {showType ? <VisibilityRounded /> : <VisibilityOffRounded />}
@@ -169,6 +176,7 @@ const ProxyGroup = ({ group }: Props) => {
           <IconButton
             size="small"
             title="filter"
+            color="inherit"
             onClick={() => setShowFilter(!showFilter)}
           >
             {showFilter ? <FilterAltRounded /> : <FilterAltOffRounded />}