Skip to content

Commit

Permalink
feat(design): updates dialog and status bar to match design (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
2xAA authored Jul 8, 2022
1 parent 8e42216 commit 186bcaa
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 24 deletions.
6 changes: 6 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,12 @@ export default {
</script>

<style>
input:focus-visible,
select:focus-visible {
outline-style: solid;
outline-width: 2px;
}
.tooltip {
position: absolute;
padding: 4px;
Expand Down
1 change: 1 addition & 0 deletions src/components/Dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ dialog {
padding: 0;
min-width: 310px;
margin-bottom: auto; /* fixes an issue with a raster :last-child global selector */
}
header {
Expand Down
16 changes: 15 additions & 1 deletion src/components/Gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
<grid columns="4">
<c span="1..">
<TextInput
placeholder="search"
class="gallery-search"
placeholder="Search"
v-model="searchTerm"
ref="searchField"
/>
Expand Down Expand Up @@ -257,4 +258,17 @@ div.gallery > grid {
text-transform: uppercase;
margin-bottom: 8px;
}
.gallery-search {
display: flex;
padding: 4px 16px;
background: #363636;
border-radius: 50px;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 17px;
color: #9a9a9a;
height: auto;
}
</style>
16 changes: 15 additions & 1 deletion src/components/StatusBar/FPSDisplay.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
<template>
<div @dblclick="openFrameRateDialog">
<div
v-infoView="{ title: iVTitle, body: iVBody, id: 'FPS Display' }"
v-searchTerms="{
terms: ['fps', 'frame', 'frame rate', 'frames', 'frames per second'],
title: 'FPS Control',
type: 'Status Bar Item'
}"
@dblclick="openFrameRateDialog"
>
{{ Math.round($modV.store.state.metrics.fps) }} FPS
</div>
</template>

<script>
export default {
data() {
return {
iVTitle: "FPS Display",
iVBody: "Double click to set the target FPS."
};
},
methods: {
openFrameRateDialog() {
this.$store.commit("dialogs/ADD_OPEN", "frameRate");
Expand Down
39 changes: 20 additions & 19 deletions src/components/StatusBar/StatusBarItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,28 @@

<style scoped>
.statusbar-item {
color: #000;
display: inline-flex;
height: 100%;
align-items: center;
justify-content: center;
/* Pill */
font-family: "IBM Plex Mono", monospace;
}
/* Auto layout */
display: flex;
flex-direction: row;
align-items: flex-start;
padding: 4px 15px;
gap: 10px;
.tag {
background: #9a9a9a;
border-radius: 25px;
font-family: inherit;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 17px;
/* identical to box height */
display: flex;
align-items: center;
background-color: #f5f5f5;
border-radius: 4px;
color: #4a4a4a;
display: inline-flex;
font-size: 0.9rem;
height: 2em;
justify-content: center;
line-height: 1.5;
padding-left: 0.75em;
padding-right: 0.75em;
white-space: nowrap;
text-align: center;
color: #000000;
}
</style>
14 changes: 11 additions & 3 deletions src/components/StatusBar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,18 @@ export default {

<style>
.status-bar {
padding-left: 0.5rem;
/* padding-left: 0.5rem; */
background-color: #c1c1c1;
height: 35px;
/* Status Bar */
/* Auto layout */
display: flex;
flex-direction: row;
align-items: flex-start;
padding: 8px;
gap: 8px;
background: #363636;
}
.status-bar.tags {
Expand Down

0 comments on commit 186bcaa

Please sign in to comment.