filebrowser works with theme color
This commit is contained in:
parent
475b8d0845
commit
423df7cfb1
@ -36,14 +36,21 @@ import ZIP from '../assets/fileTypes/zip.svg'
|
|||||||
import CaretDown from '../assets/icons/caretDown.svg'
|
import CaretDown from '../assets/icons/caretDown.svg'
|
||||||
import bytesToString from '../utils/bytestring.js'
|
import bytesToString from '../utils/bytestring.js'
|
||||||
|
|
||||||
// bunch of styled components
|
const FBContainer = styled.div`
|
||||||
const BrowserContainer = styled.div`
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 50%;
|
`
|
||||||
|
|
||||||
|
// bunch of styled components
|
||||||
|
const BrowserWrapper = styled.div`
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: radial-gradient(rgba(0,0,0,.25), transparent 175%);
|
background: var(--box-radial-gradient);
|
||||||
border-radius: 0 0 .3em .3em;
|
border-radius: 0 0 .3em .3em;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
@ -81,14 +88,14 @@ const GridFileBrowser = styled.div`
|
|||||||
} */
|
} */
|
||||||
`
|
`
|
||||||
|
|
||||||
const GridFileHeader = styled.div`
|
const BrowserHeader = styled.div`
|
||||||
background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,.03));
|
background: var(--box-gradient);
|
||||||
padding-right: .5rem;
|
padding-right: .5rem;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
border-radius: .3rem .3rem 0 0;
|
border-radius: .3rem .3rem 0 0;
|
||||||
height: unset;
|
height: unset;
|
||||||
transform: unset;
|
transform: unset;
|
||||||
width: 50%;
|
width: 100%;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@ -111,7 +118,7 @@ const SpanPathDirectory = styled.span`
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--off-white);
|
color: var(--text-hover);
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
@ -379,8 +386,8 @@ class FileBrowser extends Component {
|
|||||||
const { transitionFiles } = this.state
|
const { transitionFiles } = this.state
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<FBContainer>
|
||||||
<GridFileHeader>
|
<BrowserHeader>
|
||||||
<div style={{
|
<div style={{
|
||||||
// gridColumn: "1 / span 2",
|
// gridColumn: "1 / span 2",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
@ -444,9 +451,9 @@ class FileBrowser extends Component {
|
|||||||
}
|
}
|
||||||
</SizeP>
|
</SizeP>
|
||||||
</GridFileBrowser>
|
</GridFileBrowser>
|
||||||
</GridFileHeader>
|
</BrowserHeader>
|
||||||
|
|
||||||
<BrowserContainer>
|
<BrowserWrapper>
|
||||||
{
|
{
|
||||||
transitionFiles !== 0 &&
|
transitionFiles !== 0 &&
|
||||||
<GridFileBrowser style={{
|
<GridFileBrowser style={{
|
||||||
@ -475,8 +482,8 @@ class FileBrowser extends Component {
|
|||||||
}}>
|
}}>
|
||||||
{ this.renderFiles() }
|
{ this.renderFiles() }
|
||||||
</GridFileBrowser>
|
</GridFileBrowser>
|
||||||
</BrowserContainer>
|
</BrowserWrapper>
|
||||||
</Fragment>
|
</FBContainer>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,9 +24,11 @@ class Settings extends Component {
|
|||||||
"--popup-background": "#222",
|
"--popup-background": "#222",
|
||||||
"--popup-header": "#333",
|
"--popup-header": "#333",
|
||||||
"--box-gradient": "linear-gradient(#71caf220, #3f79ad33)",
|
"--box-gradient": "linear-gradient(#71caf220, #3f79ad33)",
|
||||||
|
"--box-radial-gradient": "radial-gradient(#71caf220, transparent 150%)",
|
||||||
"--status-red": "linear-gradient(#f56565aa, #c92222)",
|
"--status-red": "linear-gradient(#f56565aa, #c92222)",
|
||||||
"--status-green": "linear-gradient(#95ee85aa, #3c891c)",
|
"--status-green": "linear-gradient(#95ee85aa, #3c891c)",
|
||||||
"--text-color": "#fff",
|
"--text-color": "#fff",
|
||||||
|
"--text-hover": "#eee",
|
||||||
"--button-color": "#111",
|
"--button-color": "#111",
|
||||||
"--button-hover": "#181818"
|
"--button-hover": "#181818"
|
||||||
}
|
}
|
||||||
|
@ -9,8 +9,10 @@ html {
|
|||||||
--primary-color-trans: #3f79ad33;
|
--primary-color-trans: #3f79ad33;
|
||||||
--secondary-color-trans: #71caf233;
|
--secondary-color-trans: #71caf233;
|
||||||
--text-color: #000;
|
--text-color: #000;
|
||||||
|
--text-hover: #222;
|
||||||
|
|
||||||
--box-gradient: linear-gradient(#71caf220, #3f79ad33);
|
--box-gradient: linear-gradient(#71caf220, #3f79ad33);
|
||||||
|
--box-radial-gradient: radial-gradient(#3f79ad33, transparent 150%);
|
||||||
|
|
||||||
--status-red: linear-gradient(#fd4444aa, #c92222);
|
--status-red: linear-gradient(#fd4444aa, #c92222);
|
||||||
--status-green: linear-gradient(#3bc322aa, #3c891c);
|
--status-green: linear-gradient(#3bc322aa, #3c891c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user