mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Adding windows title buttons
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
c4aa839c86
commit
fffb340289
@ -45,3 +45,32 @@
|
||||
display: flex;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.winButtons {
|
||||
display: flex;
|
||||
margin-left: 1.5rem;
|
||||
margin-right: -1.5rem;
|
||||
|
||||
> div {
|
||||
@apply flex items-center justify-center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
.minimize, .maximize {
|
||||
&:hover {
|
||||
background-color: var(--borderFaintColor);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: var(--borderColor);
|
||||
}
|
||||
}
|
||||
|
||||
.close {
|
||||
&:hover {
|
||||
color: white;
|
||||
background-color: #ef4b4e;
|
||||
}
|
||||
}
|
||||
@ -136,6 +136,16 @@ export const TopBar = observer(({ children, ...rest }: Props) => {
|
||||
<div className={styles.controls}>
|
||||
{renderRegisteredItems()}
|
||||
{children}
|
||||
<div className={styles.winButtons}>
|
||||
<div className={styles.minimize}>
|
||||
<svg aria-hidden="false" width="12" height="12" viewBox="0 0 12 12"><rect fill="currentColor" width="10" height="1" x="1" y="6"></rect></svg></div>
|
||||
<div className={styles.maximize}>
|
||||
<svg aria-hidden="false" width="12" height="12" viewBox="0 0 12 12"><rect width="9" height="9" x="1.5" y="1.5" fill="none" stroke="currentColor"></rect></svg>
|
||||
</div>
|
||||
<div className={styles.close}>
|
||||
<svg aria-hidden="false" width="12" height="12" viewBox="0 0 12 12"><polygon fill="currentColor" points="11 1.576 6.583 6 11 10.424 10.424 11 6 6.583 1.576 11 1 10.424 5.417 6 1 1.576 1.576 1 6 5.417 10.424 1"></polygon></svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user