mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 02:58:11 +08:00
Populate tool shelf and tool options bar (#66)
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<div class="shelf-item" :class="{ active: active }">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss">
|
||||
.shelf-item {
|
||||
padding: 4px;
|
||||
border-radius: 4px;
|
||||
|
||||
&:hover {
|
||||
background: #555;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: #428bbb;
|
||||
}
|
||||
|
||||
svg {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from "vue";
|
||||
|
||||
export default defineComponent({
|
||||
props: {
|
||||
active: { type: Boolean, default: false },
|
||||
},
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user