-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from transcental/create-quilts
Add functionality to create quilts and fix the file sorting
- Loading branch information
Showing
8 changed files
with
996 additions
and
130 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<script lang="ts"> | ||
export let disabled: boolean = false; | ||
export let onClick: () => void; | ||
export let type: "button" | "submit" | "reset" = "button"; | ||
export let ariaLabel: string; | ||
export let close: boolean = false; | ||
</script> | ||
|
||
<button {type} {disabled} aria-label={ariaLabel} onclick={onClick} class:close> | ||
<slot></slot> | ||
</button> | ||
|
||
<style> | ||
button { | ||
-webkit-appearance: none; | ||
-moz-appearance: none; | ||
appearance: none; | ||
padding: 5px; | ||
margin: 5px; | ||
border: 1px solid #646cff; | ||
border-radius: 5px; | ||
background-color: #646cff; | ||
color: white; | ||
} | ||
button { | ||
cursor: pointer; | ||
} | ||
button[disabled] { | ||
background-color: #646cff40; | ||
color: #646cff80; | ||
cursor: not-allowed; | ||
} | ||
button.close { | ||
background-color: #ff3e00; | ||
border-color: #ff3e00; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<script lang="ts"> | ||
import { open } from "@tauri-apps/plugin-dialog"; | ||
const openFolder = async () => { | ||
const result = await open({ | ||
directory: true, | ||
multiple: multiple, | ||
}); | ||
if (result) { | ||
callback(result); | ||
} | ||
}; | ||
export let multiple: boolean = false; | ||
export let callback: (path: string) => void; | ||
</script> | ||
|
||
<button on:click={openFolder}> | ||
<slot></slot> | ||
</button> | ||
|
||
<style> | ||
button { | ||
-webkit-appearance: none; | ||
-moz-appearance: none; | ||
appearance: none; | ||
padding: 5px; | ||
margin: 5px; | ||
border: 1px solid #646cff; | ||
border-radius: 5px; | ||
background-color: #646cff; | ||
color: white; | ||
} | ||
button { | ||
cursor: pointer; | ||
} | ||
</style> |
Oops, something went wrong.