mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-27 03:22:15 +03:00
Update commit icon in CommandPalette
This commit updates the icon used for the commit action within the CommandPalette component. Previously, it used the RewindIcon which seemed inappropriate for the action. The GitCommitIcon has been added to the icons index and used as a replacement. Additionally, an unnecessary class attribute was removed from the RewindIcon component. Changes: - Add GitCommitIcon to icons index - Replace RewindIcon with GitCommitIcon in CommandPalette - Remove unnecessary class attribute from RewindIcon
This commit is contained in:
parent
26440211ab
commit
d461d670d7
@ -14,6 +14,7 @@
|
|||||||
import { invoke } from '@tauri-apps/api';
|
import { invoke } from '@tauri-apps/api';
|
||||||
import { createEventDispatcher } from 'svelte';
|
import { createEventDispatcher } from 'svelte';
|
||||||
import { RewindIcon } from '$lib/components/icons';
|
import { RewindIcon } from '$lib/components/icons';
|
||||||
|
import { GitCommitIcon } from '$lib/components/icons';
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
@ -91,7 +92,7 @@
|
|||||||
action: {
|
action: {
|
||||||
component: Commit
|
component: Commit
|
||||||
},
|
},
|
||||||
icon: RewindIcon,
|
icon: GitCommitIcon,
|
||||||
visible: 'commit'.includes(userInput?.toLowerCase())
|
visible: 'commit'.includes(userInput?.toLowerCase())
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
3
src/lib/components/icons/GitCommitIcon.svelte
Normal file
3
src/lib/components/icons/GitCommitIcon.svelte
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M9.88822 7.00178C9.16279 7.02506 8.46269 7.2735 7.88503 7.71283C7.30733 8.15203 6.88067 8.76019 6.66431 9.45298H3.03247C2.66239 9.45651 2.32189 9.65594 2.13796 9.97703C1.95401 10.2981 1.95401 10.6927 2.13796 11.0138C2.32191 11.3349 2.66239 11.5343 3.03247 11.5379H6.66431C6.96248 12.4919 7.655 13.2725 8.56658 13.6825C9.47816 14.0925 10.5217 14.0925 11.4333 13.6825C12.3449 13.2725 13.0374 12.4919 13.3356 11.5379H16.9674C17.3375 11.5343 17.678 11.3349 17.8619 11.0138C18.046 10.6927 18.046 10.2981 17.8619 9.97703C17.678 9.65594 17.3375 9.4565 16.9674 9.45298H13.3356C13.1079 8.72377 12.6475 8.08927 12.0249 7.64651C11.4022 7.20388 10.6517 6.97741 9.88822 7.00178ZM9.96575 9.08105C10.3461 9.07179 10.714 9.21698 10.9855 9.48347C11.2571 9.74994 11.4092 10.115 11.4071 10.4954C11.4136 10.8728 11.2682 11.2369 11.0036 11.5061C10.739 11.7752 10.3774 11.9267 10 11.9267C9.62248 11.9267 9.26091 11.7752 8.99641 11.5061C8.73176 11.2369 8.58632 10.8728 8.59278 10.4954C8.59083 10.1269 8.73357 9.77225 8.99029 9.50774C9.24701 9.24334 9.59723 9.0901 9.96575 9.08109V9.08105Z" fill="#71717A"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
@ -4,7 +4,6 @@
|
|||||||
viewBox="0 0 20 20"
|
viewBox="0 0 20 20"
|
||||||
fill="none"
|
fill="none"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
class="h-6 w-6"
|
|
||||||
>
|
>
|
||||||
<path
|
<path
|
||||||
fill-rule="evenodd"
|
fill-rule="evenodd"
|
||||||
|
Before Width: | Height: | Size: 803 B After Width: | Height: | Size: 786 B |
@ -5,6 +5,7 @@ export { default as ContactIcon } from './ContactIcon.svelte';
|
|||||||
export { default as FileIcon } from './FileIcon.svelte';
|
export { default as FileIcon } from './FileIcon.svelte';
|
||||||
export { default as FolderIcon } from './FolderIcon.svelte';
|
export { default as FolderIcon } from './FolderIcon.svelte';
|
||||||
export { default as LabelIcon } from './LabelIcon.svelte';
|
export { default as LabelIcon } from './LabelIcon.svelte';
|
||||||
|
export { default as GitCommitIcon } from './GitCommitIcon.svelte';
|
||||||
export { default as ProjectIcon } from './ProjectIcon.svelte';
|
export { default as ProjectIcon } from './ProjectIcon.svelte';
|
||||||
export { default as RewindIcon } from './RewindIcon.svelte';
|
export { default as RewindIcon } from './RewindIcon.svelte';
|
||||||
export { default as IconRotateClockwise } from './IconRotateClockwise.svelte';
|
export { default as IconRotateClockwise } from './IconRotateClockwise.svelte';
|
||||||
|
Loading…
Reference in New Issue
Block a user