mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Updates styling
This commit is contained in:
@ -10,8 +10,8 @@ import InvokeTabs from '../features/tabs/InvokeTabs';
|
|||||||
import ImageUploader from '../common/components/ImageUploader';
|
import ImageUploader from '../common/components/ImageUploader';
|
||||||
import { RootState, useAppSelector } from '../app/store';
|
import { RootState, useAppSelector } from '../app/store';
|
||||||
|
|
||||||
import ShowHideGalleryButton from '../features/tabs/ShowHideGalleryButton';
|
import FloatingGalleryButton from '../features/tabs/FloatingGalleryButton';
|
||||||
import ShowHideOptionsPanelButton from '../features/tabs/ShowHideOptionsPanelButton';
|
import FloatingOptionsPanelButtons from '../features/tabs/FloatingOptionsPanelButtons';
|
||||||
import { createSelector } from '@reduxjs/toolkit';
|
import { createSelector } from '@reduxjs/toolkit';
|
||||||
import { GalleryState } from '../features/gallery/gallerySlice';
|
import { GalleryState } from '../features/gallery/gallerySlice';
|
||||||
import { OptionsState } from '../features/options/optionsSlice';
|
import { OptionsState } from '../features/options/optionsSlice';
|
||||||
@ -72,8 +72,8 @@ const App = () => {
|
|||||||
<div className="app-console">
|
<div className="app-console">
|
||||||
<Console />
|
<Console />
|
||||||
</div>
|
</div>
|
||||||
{shouldShowGalleryButton && <ShowHideGalleryButton />}
|
{shouldShowGalleryButton && <FloatingGalleryButton />}
|
||||||
{shouldShowOptionsPanelButton && <ShowHideOptionsPanelButton />}
|
{shouldShowOptionsPanelButton && <FloatingOptionsPanelButtons />}
|
||||||
</ImageUploader>
|
</ImageUploader>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import { useHotkeys } from 'react-hotkeys-hook';
|
import { useHotkeys } from 'react-hotkeys-hook';
|
||||||
import { BsImageFill } from 'react-icons/bs';
|
import { BsImageFill, BsPlayFill } from 'react-icons/bs';
|
||||||
|
import { FaPlay, FaPlayCircle } from 'react-icons/fa';
|
||||||
|
import { IoPlay } from 'react-icons/io5';
|
||||||
import { generateImage } from '../../../app/socketio/actions';
|
import { generateImage } from '../../../app/socketio/actions';
|
||||||
import { useAppDispatch, useAppSelector } from '../../../app/store';
|
import { useAppDispatch, useAppSelector } from '../../../app/store';
|
||||||
import IAIButton, {
|
import IAIButton, {
|
||||||
@ -38,10 +40,10 @@ export default function InvokeButton(props: InvokeButton) {
|
|||||||
<IAIIconButton
|
<IAIIconButton
|
||||||
aria-label="Invoke"
|
aria-label="Invoke"
|
||||||
type="submit"
|
type="submit"
|
||||||
icon={<BsImageFill />}
|
icon={<FaPlay />}
|
||||||
isDisabled={!isReady}
|
isDisabled={!isReady}
|
||||||
onClick={handleClickGenerate}
|
onClick={handleClickGenerate}
|
||||||
className="invoke-btn"
|
className="invoke-btn invoke"
|
||||||
tooltip="Invoke"
|
tooltip="Invoke"
|
||||||
tooltipPlacement="bottom"
|
tooltipPlacement="bottom"
|
||||||
{...rest}
|
{...rest}
|
||||||
|
@ -7,6 +7,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.invoke-btn {
|
.invoke-btn {
|
||||||
|
svg {
|
||||||
|
width: 18px !important;
|
||||||
|
height: 18px !important;
|
||||||
|
}
|
||||||
@include Button(
|
@include Button(
|
||||||
$btn-color: var(--accent-color),
|
$btn-color: var(--accent-color),
|
||||||
$btn-color-hover: var(--accent-color-hover),
|
$btn-color-hover: var(--accent-color-hover),
|
||||||
|
@ -3,7 +3,7 @@ import { useAppDispatch } from '../../app/store';
|
|||||||
import IAIIconButton from '../../common/components/IAIIconButton';
|
import IAIIconButton from '../../common/components/IAIIconButton';
|
||||||
import { setShouldShowGallery } from '../gallery/gallerySlice';
|
import { setShouldShowGallery } from '../gallery/gallerySlice';
|
||||||
|
|
||||||
const ShowHideGalleryButton = () => {
|
const FloatingGalleryButton = () => {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
|
||||||
const handleShowGallery = () => {
|
const handleShowGallery = () => {
|
||||||
@ -23,4 +23,4 @@ const ShowHideGalleryButton = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ShowHideGalleryButton;
|
export default FloatingGalleryButton;
|
@ -24,7 +24,7 @@ const canInvokeSelector = createSelector(
|
|||||||
{ memoizeOptions: { resultEqualityCheck: _.isEqual } }
|
{ memoizeOptions: { resultEqualityCheck: _.isEqual } }
|
||||||
);
|
);
|
||||||
|
|
||||||
const ShowHideOptionsPanelButton = () => {
|
const FloatingOptionsPanelButtons = () => {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
const { shouldShowProcessButtons } = useAppSelector(canInvokeSelector);
|
const { shouldShowProcessButtons } = useAppSelector(canInvokeSelector);
|
||||||
|
|
||||||
@ -53,4 +53,4 @@ const ShowHideOptionsPanelButton = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ShowHideOptionsPanelButton;
|
export default FloatingOptionsPanelButtons;
|
@ -37,5 +37,11 @@
|
|||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
.workarea-split-view-left {
|
||||||
|
padding-right: 0.5rem;
|
||||||
|
}
|
||||||
|
.workarea-split-view-right {
|
||||||
|
padding-left: 0.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
@use '../features/tabs/TextToImage/TextToImage.scss';
|
@use '../features/tabs/TextToImage/TextToImage.scss';
|
||||||
@use '../features/tabs/ImageToImage/ImageToImage.scss';
|
@use '../features/tabs/ImageToImage/ImageToImage.scss';
|
||||||
@use '../features/tabs/Inpainting/Inpainting.scss';
|
@use '../features/tabs/Inpainting/Inpainting.scss';
|
||||||
@use '../features/tabs/FloatingShowHideButton.scss';
|
@use '../features/tabs/FloatingButton.scss';
|
||||||
|
|
||||||
// Component Shared
|
// Component Shared
|
||||||
@use '../common/components/IAINumberInput.scss';
|
@use '../common/components/IAINumberInput.scss';
|
||||||
|
Reference in New Issue
Block a user