Improve the appearance of project panel filename editor
* Always layout single-line editors with a fixed height * Preserve directory chevron when editing folder names * Allow theming the filename editor Co-authored-by: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
333b4aaf4e
commit
8fdc5c9be3
15 changed files with 206 additions and 234 deletions
|
@ -1,6 +1,6 @@
|
|||
import Theme from "../themes/theme";
|
||||
import { panel } from "./app";
|
||||
import { backgroundColor, iconColor, text } from "./components";
|
||||
import { backgroundColor, iconColor, player, text } from "./components";
|
||||
|
||||
export default function projectPanel(theme: Theme) {
|
||||
return {
|
||||
|
@ -26,5 +26,10 @@ export default function projectPanel(theme: Theme) {
|
|||
text: text(theme, "mono", "active", { size: "sm" }),
|
||||
}
|
||||
},
|
||||
filenameEditor: {
|
||||
background: backgroundColor(theme, 500, "active"),
|
||||
text: text(theme, "mono", "primary", { size: "sm" }),
|
||||
selection: player(theme, 1).selection,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue