mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Improve add models guidance
This commit is contained in:
parent
b40faa98bd
commit
211d6b3831
@ -235,7 +235,7 @@ export default function SearchModels() {
|
|||||||
style={{
|
style={{
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
fontSize: '0.8rem',
|
fontSize: '0.8rem',
|
||||||
backgroundColor: 'var(--accent-color)',
|
backgroundColor: 'var(--background-color-secondary)',
|
||||||
padding: '0.2rem 1rem',
|
padding: '0.2rem 1rem',
|
||||||
width: 'max-content',
|
width: 'max-content',
|
||||||
borderRadius: '0.2rem',
|
borderRadius: '0.2rem',
|
||||||
@ -301,34 +301,6 @@ export default function SearchModels() {
|
|||||||
)}
|
)}
|
||||||
{foundModels && (
|
{foundModels && (
|
||||||
<Flex flexDirection={'column'} rowGap={'1rem'}>
|
<Flex flexDirection={'column'} rowGap={'1rem'}>
|
||||||
{foundModels.length > 0 ? (
|
|
||||||
<Text
|
|
||||||
fontWeight="bold"
|
|
||||||
fontSize={14}
|
|
||||||
padding="0.5rem"
|
|
||||||
borderRadius="0.2rem"
|
|
||||||
margin="0 0.5rem 0 1rem"
|
|
||||||
textAlign="center"
|
|
||||||
backgroundColor="var(--accent-color)"
|
|
||||||
boxShadow="0 0 200px 6px var(--accent-color-bright)"
|
|
||||||
>
|
|
||||||
{t('modelmanager:selectAndAdd')}
|
|
||||||
</Text>
|
|
||||||
) : (
|
|
||||||
<Text
|
|
||||||
fontWeight="bold"
|
|
||||||
fontSize={14}
|
|
||||||
padding="0.5rem"
|
|
||||||
borderRadius="0.2rem"
|
|
||||||
margin="0 0.5rem 0 1rem"
|
|
||||||
textAlign="center"
|
|
||||||
backgroundColor="var(--status-bad-color)"
|
|
||||||
boxShadow="0 0 200px 6px var(--status-bad-glow)"
|
|
||||||
>
|
|
||||||
{t('modelmanager:noModelsFound')}
|
|
||||||
</Text>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Flex justifyContent={'space-between'} alignItems="center">
|
<Flex justifyContent={'space-between'} alignItems="center">
|
||||||
<p>
|
<p>
|
||||||
{t('modelmanager:modelsFound')}: {foundModels.length}
|
{t('modelmanager:modelsFound')}: {foundModels.length}
|
||||||
@ -367,6 +339,9 @@ export default function SearchModels() {
|
|||||||
<IAIButton
|
<IAIButton
|
||||||
isDisabled={modelsToAdd.length === 0}
|
isDisabled={modelsToAdd.length === 0}
|
||||||
onClick={addSelectedModels}
|
onClick={addSelectedModels}
|
||||||
|
backgroundColor={
|
||||||
|
modelsToAdd.length > 0 ? 'var(--accent-color) !important' : ''
|
||||||
|
}
|
||||||
>
|
>
|
||||||
{t('modelmanager:addSelected')}
|
{t('modelmanager:addSelected')}
|
||||||
</IAIButton>
|
</IAIButton>
|
||||||
@ -380,6 +355,36 @@ export default function SearchModels() {
|
|||||||
paddingLeft="0.2rem"
|
paddingLeft="0.2rem"
|
||||||
borderRadius="0.2rem"
|
borderRadius="0.2rem"
|
||||||
>
|
>
|
||||||
|
{foundModels.length > 0 ? (
|
||||||
|
modelsToAdd.length === 0 && (
|
||||||
|
<Text
|
||||||
|
fontWeight="bold"
|
||||||
|
fontSize={14}
|
||||||
|
padding="0.5rem"
|
||||||
|
borderRadius="0.2rem"
|
||||||
|
margin="0 0.5rem 0 1rem"
|
||||||
|
textAlign="center"
|
||||||
|
backgroundColor="var(--notice-color)"
|
||||||
|
boxShadow="0 0 200px 6px var(--notice-color)"
|
||||||
|
marginTop="1rem"
|
||||||
|
width="max-content"
|
||||||
|
>
|
||||||
|
{t('modelmanager:selectAndAdd')}
|
||||||
|
</Text>
|
||||||
|
)
|
||||||
|
) : (
|
||||||
|
<Text
|
||||||
|
fontWeight="bold"
|
||||||
|
fontSize={14}
|
||||||
|
padding="0.5rem"
|
||||||
|
borderRadius="0.2rem"
|
||||||
|
textAlign="center"
|
||||||
|
backgroundColor="var(--status-bad-color)"
|
||||||
|
>
|
||||||
|
{t('modelmanager:noModelsFound')}
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
|
|
||||||
{renderFoundModels()}
|
{renderFoundModels()}
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
@ -89,6 +89,7 @@
|
|||||||
--status-working-glow: rgb(255, 160, 55);
|
--status-working-glow: rgb(255, 160, 55);
|
||||||
--status-bad-color: rgb(255, 90, 90);
|
--status-bad-color: rgb(255, 90, 90);
|
||||||
--status-bad-glow: rgb(255, 40, 40);
|
--status-bad-glow: rgb(255, 40, 40);
|
||||||
|
--notice-color: rgb(130, 71, 19);
|
||||||
|
|
||||||
// Settings Modal
|
// Settings Modal
|
||||||
--settings-modal-bg: rgb(30, 32, 42);
|
--settings-modal-bg: rgb(30, 32, 42);
|
||||||
|
@ -87,6 +87,7 @@
|
|||||||
--status-working-glow: rgb(255, 160, 55);
|
--status-working-glow: rgb(255, 160, 55);
|
||||||
--status-bad-color: rgb(255, 90, 90);
|
--status-bad-color: rgb(255, 90, 90);
|
||||||
--status-bad-glow: rgb(255, 40, 40);
|
--status-bad-glow: rgb(255, 40, 40);
|
||||||
|
--notice-color: rgb(130, 71, 19);
|
||||||
|
|
||||||
// Settings Modal
|
// Settings Modal
|
||||||
--settings-modal-bg: rgb(30, 32, 42);
|
--settings-modal-bg: rgb(30, 32, 42);
|
||||||
|
@ -84,6 +84,7 @@
|
|||||||
--status-working-glow: var(--background-color);
|
--status-working-glow: var(--background-color);
|
||||||
--status-bad-color: rgb(202, 0, 0);
|
--status-bad-color: rgb(202, 0, 0);
|
||||||
--status-bad-glow: var(--background-color);
|
--status-bad-glow: var(--background-color);
|
||||||
|
--notice-color: rgb(255, 71, 90);
|
||||||
|
|
||||||
// Settings Modal
|
// Settings Modal
|
||||||
--settings-modal-bg: rgb(202, 204, 206);
|
--settings-modal-bg: rgb(202, 204, 206);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user