Updated Current Image Button Styling

This commit is contained in:
blessedcoolant 2022-11-03 04:16:31 +13:00 committed by Lincoln Stein
parent 1ae80f5ab9
commit 95ed56bf82
4 changed files with 33 additions and 18 deletions

View File

@ -3,7 +3,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
column-gap: 0.5rem; column-gap: 0.5em;
.current-image-send-to-popover, .current-image-send-to-popover,
.current-image-postprocessing-popover { .current-image-postprocessing-popover {
@ -16,4 +16,10 @@
.chakra-popover__popper { .chakra-popover__popper {
z-index: 11; z-index: 11;
} }
.delete-image-btn {
svg {
fill: var(--btn-delete-image);
}
}
} }

View File

@ -378,7 +378,9 @@ const CurrentImageButtons = () => {
</IAIButton> </IAIButton>
</div> </div>
</IAIPopover> </IAIPopover>
</ButtonGroup>
<ButtonGroup isAttached={true}>
<IAIIconButton <IAIIconButton
icon={<FaQuoteRight />} icon={<FaQuoteRight />}
tooltip="Use Prompt" tooltip="Use Prompt"
@ -406,7 +408,9 @@ const CurrentImageButtons = () => {
} }
onClick={handleClickUseAllParameters} onClick={handleClickUseAllParameters}
/> />
</ButtonGroup>
<ButtonGroup isAttached={true}>
<IAIPopover <IAIPopover
trigger="hover" trigger="hover"
triggerComponent={ triggerComponent={
@ -450,24 +454,25 @@ const CurrentImageButtons = () => {
</IAIButton> </IAIButton>
</div> </div>
</IAIPopover> </IAIPopover>
<IAIIconButton
icon={<FaCode />}
tooltip="Details"
aria-label="Details"
data-selected={shouldShowImageDetails}
onClick={handleClickShowImageDetails}
/>
<DeleteImageModal image={currentImage}>
<IAIIconButton
icon={<FaTrash />}
tooltip="Delete Image"
aria-label="Delete Image"
isDisabled={!currentImage || !isConnected || isProcessing}
/>
</DeleteImageModal>
</ButtonGroup> </ButtonGroup>
<IAIIconButton
icon={<FaCode />}
tooltip="Details"
aria-label="Details"
data-selected={shouldShowImageDetails}
onClick={handleClickShowImageDetails}
/>
<DeleteImageModal image={currentImage}>
<IAIIconButton
icon={<FaTrash />}
tooltip="Delete Image"
aria-label="Delete Image"
isDisabled={!currentImage || !isConnected || isProcessing}
className="delete-image-btn"
/>
</DeleteImageModal>
</div> </div>
); );
}; };

View File

@ -50,6 +50,8 @@
--btn-load-more: rgb(30, 32, 42); --btn-load-more: rgb(30, 32, 42);
--btn-load-more-hover: rgb(54, 56, 66); --btn-load-more-hover: rgb(54, 56, 66);
--btn-delete-image: rgb(238, 107, 107);
// IAI Button Colors // IAI Button Colors
--btn-checkbox-border-hover: rgb(46, 48, 68); --btn-checkbox-border-hover: rgb(46, 48, 68);

View File

@ -50,6 +50,8 @@
--btn-load-more: rgb(202, 204, 206); --btn-load-more: rgb(202, 204, 206);
--btn-load-more-hover: rgb(178, 180, 182); --btn-load-more-hover: rgb(178, 180, 182);
--btn-delete-image: rgb(213, 49, 49);
// IAI Button Colors // IAI Button Colors
--btn-checkbox-border-hover: rgb(176, 178, 182); --btn-checkbox-border-hover: rgb(176, 178, 182);