Browse Source
Replace view icons with material design icons
Replace view icons with material design icons
Signed-off-by: Joas Schilling <coding@schilljs.com>pull/7576/head
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
6 changed files with 102 additions and 24 deletions
-
13css/icons.scss
-
1img/grid-view.svg
-
1img/promoted-view.svg
-
21src/components/CallView/shared/LocalMediaControls.vue
-
46src/components/missingMaterialDesignIcons/GridView.vue
-
44src/components/missingMaterialDesignIcons/PromotedView.vue
@ -1 +0,0 @@ |
|||
<svg width="16" height="16" fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><g fill="#fff"><rect width="7" height="7" rx="2"/><rect y="9" width="7" height="7" rx="2"/><rect x="9" width="7" height="7" rx="2"/><rect x="9" y="9" width="7" height="7" rx="2"/></g></svg> |
|||
@ -1 +0,0 @@ |
|||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><rect x="1" y="1" width="13" height="9"/><rect x="1" y="12" width="3" height="3"/><rect x="6" y="12" width="3" height="3"/><rect x="11" y="12" width="3" height="3"/></svg> |
|||
@ -0,0 +1,46 @@ |
|||
<template functional> |
|||
<span :aria-hidden="props.decorative" |
|||
:aria-label="props.title" |
|||
:class="[data.class, data.staticClass]" |
|||
class="material-design-icon present-to-all-icon" |
|||
role="img" |
|||
v-bind="data.attrs" |
|||
v-on="listeners"> |
|||
<svg :fill="props.fillColor" |
|||
class="material-design-icon__svg" |
|||
:width="props.size" |
|||
:height="props.size" |
|||
viewBox="0 0 16 16"> |
|||
<g> |
|||
<rect width="7" height="7" rx="2" /> |
|||
<rect y="9" width="7" height="7" rx="2" /> |
|||
<rect x="9" width="7" height="7" rx="2" /> |
|||
<rect x="9" y="9" width="7" height="7" rx="2" /> |
|||
</g> |
|||
</svg> |
|||
</span> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
name: 'GridView', |
|||
props: { |
|||
title: { |
|||
type: String, |
|||
default: 'Grid View icon', |
|||
}, |
|||
decorative: { |
|||
type: Boolean, |
|||
default: false, |
|||
}, |
|||
fillColor: { |
|||
type: String, |
|||
default: 'currentColor', |
|||
}, |
|||
size: { |
|||
type: Number, |
|||
default: 24, |
|||
}, |
|||
}, |
|||
} |
|||
</script> |
|||
@ -0,0 +1,44 @@ |
|||
<template functional> |
|||
<span :aria-hidden="props.decorative" |
|||
:aria-label="props.title" |
|||
:class="[data.class, data.staticClass]" |
|||
class="material-design-icon present-to-all-icon" |
|||
role="img" |
|||
v-bind="data.attrs" |
|||
v-on="listeners"> |
|||
<svg :fill="props.fillColor" |
|||
class="material-design-icon__svg" |
|||
:width="props.size" |
|||
:height="props.size" |
|||
viewBox="0 0 16 16"> |
|||
<rect x="1" y="1" width="13" height="9" /> |
|||
<rect x="1" y="12" width="3" height="3" /> |
|||
<rect x="6" y="12" width="3" height="3" /> |
|||
<rect x="11" y="12" width="3" height="3" /> |
|||
</svg> |
|||
</span> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
name: 'PromotedView', |
|||
props: { |
|||
title: { |
|||
type: String, |
|||
default: 'Promoted View icon', |
|||
}, |
|||
decorative: { |
|||
type: Boolean, |
|||
default: false, |
|||
}, |
|||
fillColor: { |
|||
type: String, |
|||
default: 'currentColor', |
|||
}, |
|||
size: { |
|||
type: Number, |
|||
default: 24, |
|||
}, |
|||
}, |
|||
} |
|||
</script> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue