Skip to content

Commit

Permalink
Use material design icon for settings icon
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <[email protected]>
  • Loading branch information
raimund-schluessler committed Sep 6, 2021
1 parent 06eecc7 commit 3cc262e
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 additions & 2 deletions src/components/AppNavigationSettings/AppNavigationSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
:class="{ open }">
<div id="app-settings-header">
<button
class="settings-button"
class="settings-button-vue"
type="button"
@click="toggleMenu">
{{ title }}
<Cog class="settings-button-vue__icon" :size="24" decorative />
<span class="settings-button-vue__label">{{ title }}</span>
</button>
</div>
<transition name="slide-up">
Expand All @@ -45,10 +46,15 @@ import { directive as ClickOutside } from 'v-click-outside'
import { t } from '../../l10n'
import { excludeClickOutsideClasses } from '../../mixins'
import Cog from 'vue-material-design-icons/Cog.vue'
export default {
directives: {
ClickOutside,
},
components: {
Cog,
},
mixins: [
excludeClickOutsideClasses,
],
Expand Down Expand Up @@ -79,6 +85,41 @@ export default {
}
</script>
<style lang="scss" scoped>
#app-settings-header {
.settings-button-vue {
display: flex;
flex: 1 1 0;
height: $clickable-area;
width: 100%;
padding: 0;
margin: 0;
background-color: var(--color-main-background);
box-shadow: none;
border: 0;
border-radius: 0;
text-align: left;
font-weight: normal;
font-size: 100%;
opacity: 0.8;
color: var(--color-main-text);
padding-right: 14px;
line-height: $clickable-area;
&__icon {
width: $clickable-area;
height: $clickable-area;
min-width: $clickable-area;
}
&__label {
overflow: hidden;
max-width: 100%;
white-space: nowrap;
text-overflow: ellipsis;
padding-left: 6px;
}
}
}
#app-settings-content {
display: block;
padding: 10px;
Expand Down

0 comments on commit 3cc262e

Please sign in to comment.