Skip to content

Commit

Permalink
Button classes
Browse files Browse the repository at this point in the history
  • Loading branch information
rzats committed Jul 18, 2024
1 parent 9bdb378 commit 5f500ed
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/components/TopMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
>
<button
type="button"
class="uk-button uk-button-default uk-button-small"
class="uk-button uk-button-small"
disabled={!chart}
class:uk-active={$autoFit === true}
class:uk-button-secondary={$autoFit === true}
Expand All @@ -114,8 +114,10 @@
>
<button
type="button"
class="uk-button uk-button-default uk-button-small"
class="uk-button uk-button-small"
class:uk-active={$isShowingPoints}
class:uk-button-secondary={$isShowingPoints === true}
class:uk-button-default={$isShowingPoints === false}
on:click|preventDefault={() => ($isShowingPoints = !$isShowingPoints)}
title="Show or Hide points<br/>(Keyboard Shortcut: s)"
data-tour="points"
Expand Down Expand Up @@ -167,24 +169,30 @@
<div class="uk-button-group" data-tour="navmode">
<button
type="button"
class="uk-button uk-button-default uk-button-small"
class="uk-button uk-button-small"
class:uk-active={$navMode === NavMode.pan}
title="Pan Mode<br/>(Keyboard Shortcut: p)"
class:uk-button-secondary={$navMode === NavMode.pan}
class:uk-button-default={$navMode !== NavMode.pan}
uk-tooltip
on:click|preventDefault={() => ($navMode = NavMode.pan)}><Fa icon={faArrowsAlt} /></button
>
<button
type="button"
class="uk-button uk-button-default uk-button-small"
class="uk-button uk-button-small"
class:uk-active={$navMode === NavMode.crop}
class:uk-button-secondary={$navMode === NavMode.crop}
class:uk-button-default={$navMode !== NavMode.crop}
title="Crop Mode<br/>(Keyboard Shortcut: c)"
uk-tooltip
on:click|preventDefault={() => ($navMode = NavMode.crop)}><Fa icon={faCrop} /></button
>
<button
type="button"
class="uk-button uk-button-default uk-button-small"
class="uk-button uk-button-small"
class:uk-active={$navMode === NavMode.zoom}
class:uk-button-secondary={$navMode === NavMode.zoom}
class:uk-button-default={$navMode !== NavMode.zoom}
title="Zoom Mode<br/>(Keyboard Shortcut: z)"
uk-tooltip
on:click|preventDefault={() => ($navMode = NavMode.zoom)}><Fa icon={faSearchPlus} /></button
Expand Down

0 comments on commit 5f500ed

Please sign in to comment.