+
);
};
+
+export const UserChips = () => (
+
+ Logged Out
+
+ Logging In
+
+ Signed in - No Subscription
+
+ Signed in - With Subscription
+
+
+);
From 3311493247db547582add245c708397aadce2823 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Pasteau?=
<4895034+ClementPasteau@users.noreply.github.com>
Date: Thu, 19 Dec 2024 10:52:31 +0100
Subject: [PATCH 2/5] Update colors
---
.../Subscription/GetSubscriptionCard.module.css | 2 +-
newIDE/app/src/UI/RaisedButton.module.css | 4 ++--
newIDE/app/src/UI/Theme/BlueDarkTheme/theme.json | 16 +++++++++++++---
.../app/src/UI/Theme/DefaultDarkTheme/theme.json | 16 +++++++++++++---
.../src/UI/Theme/DefaultLightTheme/theme.json | 16 +++++++++++++---
newIDE/app/src/UI/Theme/NordTheme/theme.json | 16 +++++++++++++---
newIDE/app/src/UI/Theme/OneDarkTheme/theme.json | 16 +++++++++++++---
newIDE/app/src/UI/Theme/RosePineTheme/theme.json | 16 +++++++++++++---
.../src/UI/Theme/SolarizedDarkTheme/theme.json | 16 +++++++++++++---
newIDE/app/src/UI/User/UserAvatar.module.css | 2 +-
.../UserChip/UserChip.stories.js | 4 ++--
11 files changed, 97 insertions(+), 27 deletions(-)
diff --git a/newIDE/app/src/Profile/Subscription/GetSubscriptionCard.module.css b/newIDE/app/src/Profile/Subscription/GetSubscriptionCard.module.css
index f44056949788..305dbded5bce 100644
--- a/newIDE/app/src/Profile/Subscription/GetSubscriptionCard.module.css
+++ b/newIDE/app/src/Profile/Subscription/GetSubscriptionCard.module.css
@@ -9,7 +9,7 @@
.premiumContainer::before {
content: '';
display: block;
- background: linear-gradient(90deg, var(--theme-premium-green) 0%, var(--theme-premium-orange) 100%);
+ background: linear-gradient(90deg, var(--theme-premium-teal) 0%, var(--theme-premium-orange) 100%);
width: 100%;
padding-bottom: 100%;
position: absolute;
diff --git a/newIDE/app/src/UI/RaisedButton.module.css b/newIDE/app/src/UI/RaisedButton.module.css
index 88e50000a8f1..92d343370bff 100644
--- a/newIDE/app/src/UI/RaisedButton.module.css
+++ b/newIDE/app/src/UI/RaisedButton.module.css
@@ -19,10 +19,10 @@ button.buttonDanger:hover {
}
button.buttonPremium {
- background: linear-gradient(90deg, var(--theme-premium-green) 0%, var(--theme-premium-orange) 100%);
+ background: linear-gradient(90deg, var(--theme-premium-teal) 0%, var(--theme-premium-orange) 100%);
color: var(--theme-premium-text-contrast-color);
}
button.buttonPremium:hover {
- background: linear-gradient(90deg, var(--theme-premium-orange) 0%, var(--theme-premium-green) 100%);
+ background: linear-gradient(90deg, var(--theme-premium-teal-dark) 0%, var(--theme-premium-orange-dark) 100%);
}
\ No newline at end of file
diff --git a/newIDE/app/src/UI/Theme/BlueDarkTheme/theme.json b/newIDE/app/src/UI/Theme/BlueDarkTheme/theme.json
index 21fcd831b8b9..8d03868b9ef8 100644
--- a/newIDE/app/src/UI/Theme/BlueDarkTheme/theme.json
+++ b/newIDE/app/src/UI/Theme/BlueDarkTheme/theme.json
@@ -76,11 +76,21 @@
}
},
"premium": {
- "green": {
- "value": "#3BF7F4"
+ "teal": {
+ "value": "#3BF7F4",
+ "comment": "Palette/Teal/40"
+ },
+ "teal-dark": {
+ "value": "#09F0EC",
+ "comment": "Palette/Teal/50"
},
"orange": {
- "value": "#FFBC57"
+ "value": "#FFBC57",
+ "comment": "Palette/Yellow/40"
+ },
+ "orange-dark": {
+ "value": "#FFA929",
+ "comment": "Palette/Yellow/50"
},
"text-contrast-color": {
"value": "#1D1D26",
diff --git a/newIDE/app/src/UI/Theme/DefaultDarkTheme/theme.json b/newIDE/app/src/UI/Theme/DefaultDarkTheme/theme.json
index f4532fac910a..832c00151cb4 100644
--- a/newIDE/app/src/UI/Theme/DefaultDarkTheme/theme.json
+++ b/newIDE/app/src/UI/Theme/DefaultDarkTheme/theme.json
@@ -109,11 +109,21 @@
}
},
"premium": {
- "green": {
- "value": "#3BF7F4"
+ "teal": {
+ "value": "#3BF7F4",
+ "comment": "Palette/Teal/40"
+ },
+ "teal-dark": {
+ "value": "#09F0EC",
+ "comment": "Palette/Teal/50"
},
"orange": {
- "value": "#FFBC57"
+ "value": "#FFBC57",
+ "comment": "Palette/Yellow/40"
+ },
+ "orange-dark": {
+ "value": "#FFA929",
+ "comment": "Palette/Yellow/50"
},
"text-contrast-color": {
"value": "#1D1D26",
diff --git a/newIDE/app/src/UI/Theme/DefaultLightTheme/theme.json b/newIDE/app/src/UI/Theme/DefaultLightTheme/theme.json
index 05173d1b5fc0..a2c0064cf50d 100644
--- a/newIDE/app/src/UI/Theme/DefaultLightTheme/theme.json
+++ b/newIDE/app/src/UI/Theme/DefaultLightTheme/theme.json
@@ -109,11 +109,21 @@
}
},
"premium": {
- "green": {
- "value": "#09F0EC"
+ "teal": {
+ "value": "#3BF7F4",
+ "comment": "Palette/Teal/40"
+ },
+ "teal-dark": {
+ "value": "#09F0EC",
+ "comment": "Palette/Teal/50"
},
"orange": {
- "value": "#FFA929"
+ "value": "#FFBC57",
+ "comment": "Palette/Yellow/40"
+ },
+ "orange-dark": {
+ "value": "#FFA929",
+ "comment": "Palette/Yellow/50"
},
"text-contrast-color": {
"value": "#1D1D26",
diff --git a/newIDE/app/src/UI/Theme/NordTheme/theme.json b/newIDE/app/src/UI/Theme/NordTheme/theme.json
index 4a3bb8b1a50d..be6f37307693 100644
--- a/newIDE/app/src/UI/Theme/NordTheme/theme.json
+++ b/newIDE/app/src/UI/Theme/NordTheme/theme.json
@@ -74,11 +74,21 @@
}
},
"premium": {
- "green": {
- "value": "#3BF7F4"
+ "teal": {
+ "value": "#3BF7F4",
+ "comment": "Palette/Teal/40"
+ },
+ "teal-dark": {
+ "value": "#09F0EC",
+ "comment": "Palette/Teal/50"
},
"orange": {
- "value": "#FFBC57"
+ "value": "#FFBC57",
+ "comment": "Palette/Yellow/40"
+ },
+ "orange-dark": {
+ "value": "#FFA929",
+ "comment": "Palette/Yellow/50"
},
"text-contrast-color": {
"value": "#1D1D26",
diff --git a/newIDE/app/src/UI/Theme/OneDarkTheme/theme.json b/newIDE/app/src/UI/Theme/OneDarkTheme/theme.json
index 2a85b36f32c0..7669723bbe5a 100644
--- a/newIDE/app/src/UI/Theme/OneDarkTheme/theme.json
+++ b/newIDE/app/src/UI/Theme/OneDarkTheme/theme.json
@@ -74,11 +74,21 @@
}
},
"premium": {
- "green": {
- "value": "#3BF7F4"
+ "teal": {
+ "value": "#3BF7F4",
+ "comment": "Palette/Teal/40"
+ },
+ "teal-dark": {
+ "value": "#09F0EC",
+ "comment": "Palette/Teal/50"
},
"orange": {
- "value": "#FFBC57"
+ "value": "#FFBC57",
+ "comment": "Palette/Yellow/40"
+ },
+ "orange-dark": {
+ "value": "#FFA929",
+ "comment": "Palette/Yellow/50"
},
"text-contrast-color": {
"value": "#1D1D26",
diff --git a/newIDE/app/src/UI/Theme/RosePineTheme/theme.json b/newIDE/app/src/UI/Theme/RosePineTheme/theme.json
index a4e4d65724e3..374a18703c17 100644
--- a/newIDE/app/src/UI/Theme/RosePineTheme/theme.json
+++ b/newIDE/app/src/UI/Theme/RosePineTheme/theme.json
@@ -38,11 +38,21 @@
}
},
"premium": {
- "green": {
- "value": "#3BF7F4"
+ "teal": {
+ "value": "#3BF7F4",
+ "comment": "Palette/Teal/40"
+ },
+ "teal-dark": {
+ "value": "#09F0EC",
+ "comment": "Palette/Teal/50"
},
"orange": {
- "value": "#FFBC57"
+ "value": "#FFBC57",
+ "comment": "Palette/Yellow/40"
+ },
+ "orange-dark": {
+ "value": "#FFA929",
+ "comment": "Palette/Yellow/50"
},
"text-contrast-color": {
"value": "#1D1D26",
diff --git a/newIDE/app/src/UI/Theme/SolarizedDarkTheme/theme.json b/newIDE/app/src/UI/Theme/SolarizedDarkTheme/theme.json
index 360702002924..3aa73175f9e6 100644
--- a/newIDE/app/src/UI/Theme/SolarizedDarkTheme/theme.json
+++ b/newIDE/app/src/UI/Theme/SolarizedDarkTheme/theme.json
@@ -74,11 +74,21 @@
}
},
"premium": {
- "green": {
- "value": "#3BF7F4"
+ "teal": {
+ "value": "#3BF7F4",
+ "comment": "Palette/Teal/40"
+ },
+ "teal-dark": {
+ "value": "#09F0EC",
+ "comment": "Palette/Teal/50"
},
"orange": {
- "value": "#FFBC57"
+ "value": "#FFBC57",
+ "comment": "Palette/Yellow/40"
+ },
+ "orange-dark": {
+ "value": "#FFA929",
+ "comment": "Palette/Yellow/50"
},
"text-contrast-color": {
"value": "#1D1D26",
diff --git a/newIDE/app/src/UI/User/UserAvatar.module.css b/newIDE/app/src/UI/User/UserAvatar.module.css
index 57407f3d3bcb..cf45c15488d4 100644
--- a/newIDE/app/src/UI/User/UserAvatar.module.css
+++ b/newIDE/app/src/UI/User/UserAvatar.module.css
@@ -9,7 +9,7 @@
.premiumContainer::before {
content: '';
display: block;
- background: linear-gradient(90deg, var(--theme-premium-green) 0%, var(--theme-premium-orange) 100%);
+ background: linear-gradient(90deg, var(--theme-premium-teal) 0%, var(--theme-premium-orange) 100%);
width: 100%;
padding-bottom: 100%;
position: absolute;
diff --git a/newIDE/app/src/stories/componentStories/UserChip/UserChip.stories.js b/newIDE/app/src/stories/componentStories/UserChip/UserChip.stories.js
index 63f5bab14251..ec5b049bc4e3 100644
--- a/newIDE/app/src/stories/componentStories/UserChip/UserChip.stories.js
+++ b/newIDE/app/src/stories/componentStories/UserChip/UserChip.stories.js
@@ -2,7 +2,7 @@
import * as React from 'react';
import { action } from '@storybook/addon-actions';
-import paperDecorator from '../../PaperDecorator';
+import { getPaperDecorator } from '../../PaperDecorator';
import UserChipComponent from '../../../UI/User/UserChip';
import {
@@ -18,7 +18,7 @@ import Text from '../../../UI/Text';
export default {
title: 'User chips/UserChip',
component: UserChipComponent,
- decorators: [paperDecorator],
+ decorators: [getPaperDecorator('medium')],
};
const LoggedOut = () => {
From 93c1a959d2846f45334828d593808f68db0dfc4c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Pasteau?=
<4895034+ClementPasteau@users.noreply.github.com>
Date: Thu, 19 Dec 2024 11:01:03 +0100
Subject: [PATCH 3/5] Fix unused style
---
newIDE/app/src/Profile/Subscription/GetSubscriptionCard.js | 2 +-
.../src/Profile/Subscription/GetSubscriptionCard.module.css | 4 ----
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/newIDE/app/src/Profile/Subscription/GetSubscriptionCard.js b/newIDE/app/src/Profile/Subscription/GetSubscriptionCard.js
index d731ff930d93..0175cfa2cd2b 100644
--- a/newIDE/app/src/Profile/Subscription/GetSubscriptionCard.js
+++ b/newIDE/app/src/Profile/Subscription/GetSubscriptionCard.js
@@ -15,7 +15,7 @@ import { useResponsiveWindowSize } from '../../UI/Responsive/ResponsiveWindowMea
const styles = {
paper: {
- zIndex: 2,
+ zIndex: 2, // Make sure the paper is above the background for the border effect.
flex: 1,
},
diamondIcon: {
diff --git a/newIDE/app/src/Profile/Subscription/GetSubscriptionCard.module.css b/newIDE/app/src/Profile/Subscription/GetSubscriptionCard.module.css
index 305dbded5bce..295640c3cfbf 100644
--- a/newIDE/app/src/Profile/Subscription/GetSubscriptionCard.module.css
+++ b/newIDE/app/src/Profile/Subscription/GetSubscriptionCard.module.css
@@ -16,8 +16,4 @@
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
-}
-
-.contentContainer {
- z-index: 2; /* Make it appear above the colored background */
}
\ No newline at end of file
From f3ff6e7322a464f11e92115fc6796cabac9aefc4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Pasteau?=
<4895034+ClementPasteau@users.noreply.github.com>
Date: Thu, 19 Dec 2024 11:18:57 +0100
Subject: [PATCH 4/5] Go back to 2 buttons
---
newIDE/app/src/UI/User/UserChip.js | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/newIDE/app/src/UI/User/UserChip.js b/newIDE/app/src/UI/User/UserChip.js
index 28ee1c059550..3edf01bd1b30 100644
--- a/newIDE/app/src/UI/User/UserChip.js
+++ b/newIDE/app/src/UI/User/UserChip.js
@@ -8,13 +8,13 @@ import TextButton from '../TextButton';
import { LineStackLayout } from '../Layout';
import AuthenticatedUserContext from '../../Profile/AuthenticatedUserContext';
import CircularProgress from '../CircularProgress';
-import User from '../CustomSvgIcons/User';
import { SubscriptionSuggestionContext } from '../../Profile/Subscription/SubscriptionSuggestionContext';
import { hasValidSubscriptionPlan } from '../../Utils/GDevelopServices/Usage';
import CrownShining from '../CustomSvgIcons/CrownShining';
import UserAvatar from './UserAvatar';
import { useResponsiveWindowSize } from '../Responsive/ResponsiveWindowMeasurer';
import IconButton from '../IconButton';
+import FlatButton from '../FlatButton';
const styles = {
buttonContainer: { flexShrink: 0 },
@@ -50,6 +50,7 @@ const UserChip = ({ onOpenProfile }: Props) => {
const {
profile,
onOpenCreateAccountDialog,
+ onOpenLoginDialog,
loginState,
subscription,
} = authenticatedUser;
@@ -86,15 +87,23 @@ const UserChip = ({ onOpenProfile }: Props) => {
) : (
+
+ Log in
+
+ }
+ onClick={onOpenLoginDialog}
+ primary
+ />
- Account
+ Sign up
}
onClick={onOpenCreateAccountDialog}
primary
- icon={}
/>
From 06d1de2e6b15b43e0af80aa6c6f1569e5ae395a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Pasteau?=
<4895034+ClementPasteau@users.noreply.github.com>
Date: Thu, 19 Dec 2024 11:32:15 +0100
Subject: [PATCH 5/5] Typo icon
---
newIDE/app/src/UI/CustomSvgIcons/CrownShining.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/newIDE/app/src/UI/CustomSvgIcons/CrownShining.js b/newIDE/app/src/UI/CustomSvgIcons/CrownShining.js
index afa7d89249b1..69ca6c2ca717 100644
--- a/newIDE/app/src/UI/CustomSvgIcons/CrownShining.js
+++ b/newIDE/app/src/UI/CustomSvgIcons/CrownShining.js
@@ -43,8 +43,8 @@ export default React.memo(props => (
fill="currentColor"
/>