2021-07-21 14:13:56 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
|
|
|
<script lang="typescript">
|
|
|
|
import * as tr from "lib/i18n";
|
|
|
|
|
|
|
|
import ButtonGroup from "components/ButtonGroup.svelte";
|
|
|
|
import ButtonGroupItem from "components/ButtonGroupItem.svelte";
|
|
|
|
import IconButton from "components/IconButton.svelte";
|
|
|
|
|
|
|
|
import { sizeActual, sizeMinimized } from "./icons";
|
2021-07-29 00:40:26 +02:00
|
|
|
|
2021-08-06 02:19:36 +02:00
|
|
|
export let active: boolean;
|
2021-07-21 16:48:02 +02:00
|
|
|
export let isRtl: boolean;
|
2021-07-29 23:57:14 +02:00
|
|
|
|
2021-08-06 02:19:36 +02:00
|
|
|
$: icon = active ? sizeActual : sizeMinimized;
|
2021-07-21 14:13:56 +02:00
|
|
|
</script>
|
|
|
|
|
2021-08-06 02:19:36 +02:00
|
|
|
<ButtonGroup size={1.6}>
|
|
|
|
<ButtonGroupItem>
|
|
|
|
<IconButton {active} flipX={isRtl} tooltip={tr.editingActualSize()} on:click
|
|
|
|
>{@html icon}</IconButton
|
|
|
|
>
|
|
|
|
</ButtonGroupItem>
|
|
|
|
</ButtonGroup>
|