правки по лаунчеру
This commit is contained in:
@@ -20,40 +20,44 @@ class MwBrandMark extends StatelessWidget {
|
||||
label: 'MoonWell',
|
||||
child: SizedBox(
|
||||
width: width,
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
_MoonMark(size: compact ? 28 : 40, color: accent),
|
||||
const SizedBox(width: 12),
|
||||
Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'MOONWELL',
|
||||
style: TextStyle(
|
||||
fontFamily: 'Cinzel',
|
||||
color: _ivory,
|
||||
fontSize: compact ? 15 : 22,
|
||||
height: 1,
|
||||
letterSpacing: compact ? 4 : 6,
|
||||
),
|
||||
),
|
||||
if (!compact) ...[
|
||||
const SizedBox(height: 5),
|
||||
child: FittedBox(
|
||||
fit: BoxFit.scaleDown,
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
_MoonMark(size: compact ? 28 : 40, color: accent),
|
||||
const SizedBox(width: 12),
|
||||
Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'LUNAR · LAUNCHER',
|
||||
'MOONWELL',
|
||||
style: TextStyle(
|
||||
fontFamily: 'JetBrains Mono',
|
||||
color: accent,
|
||||
fontSize: 9,
|
||||
letterSpacing: 2.6,
|
||||
fontFamily: 'Cinzel',
|
||||
color: _ivory,
|
||||
fontSize: compact ? 15 : 22,
|
||||
height: 1,
|
||||
letterSpacing: compact ? 4 : 6,
|
||||
),
|
||||
),
|
||||
if (!compact) ...[
|
||||
const SizedBox(height: 5),
|
||||
Text(
|
||||
'LUNAR · LAUNCHER',
|
||||
style: TextStyle(
|
||||
fontFamily: 'JetBrains Mono',
|
||||
color: accent,
|
||||
fontSize: 9,
|
||||
letterSpacing: 2.6,
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -165,50 +169,89 @@ class MwLoginShell extends StatelessWidget {
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(64, 80, 64, 58),
|
||||
child: Align(
|
||||
alignment: Alignment.bottomLeft,
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 500),
|
||||
child: const Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'✦',
|
||||
style: TextStyle(
|
||||
color: Color(0xFF7FB8D4),
|
||||
fontSize: 20,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 12),
|
||||
Text(
|
||||
'«Звёздный свет проведёт тебя сквозь самые '
|
||||
'тёмные ночи — если ты готов идти туда, '
|
||||
'куда он указывает.»',
|
||||
style: TextStyle(
|
||||
fontFamily: 'Cormorant Garamond',
|
||||
fontStyle: FontStyle.italic,
|
||||
color: Color(0xC6ECE4D0),
|
||||
fontSize: 22,
|
||||
height: 1.5,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 18),
|
||||
Text(
|
||||
'— МАЛФУРИОН ЯРОСТЬ БУРИ',
|
||||
style: TextStyle(
|
||||
fontFamily: 'JetBrains Mono',
|
||||
color: Color(0x80ECE4D0),
|
||||
fontSize: 10,
|
||||
letterSpacing: 2,
|
||||
),
|
||||
),
|
||||
],
|
||||
child: Stack(
|
||||
fit: StackFit.expand,
|
||||
children: [
|
||||
Image.asset(
|
||||
'assets/login_key_art.png',
|
||||
package: assetPackage,
|
||||
fit: BoxFit.cover,
|
||||
alignment: Alignment.center,
|
||||
errorBuilder: (_, _, _) => const SizedBox.shrink(),
|
||||
),
|
||||
const DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
stops: [0, .52, 1],
|
||||
colors: [
|
||||
Color(0x00070A18),
|
||||
Color(0x22070A18),
|
||||
Color(0xF2070A18),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
const DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.centerLeft,
|
||||
end: Alignment.centerRight,
|
||||
colors: [
|
||||
Color(0x33070A18),
|
||||
Color(0x00070A18),
|
||||
Color(0x8F070A18),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(64, 80, 64, 58),
|
||||
child: Align(
|
||||
alignment: Alignment.bottomLeft,
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 500),
|
||||
child: const Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'✦',
|
||||
style: TextStyle(
|
||||
color: Color(0xFF7FB8D4),
|
||||
fontSize: 20,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 12),
|
||||
Text(
|
||||
'«Звёздный свет проведёт тебя сквозь самые '
|
||||
'тёмные ночи — если ты готов идти туда, '
|
||||
'куда он указывает.»',
|
||||
style: TextStyle(
|
||||
fontFamily: 'Cormorant Garamond',
|
||||
fontStyle: FontStyle.italic,
|
||||
color: Color(0xC6ECE4D0),
|
||||
fontSize: 22,
|
||||
height: 1.5,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 18),
|
||||
Text(
|
||||
'— МАЛФУРИОН ЯРОСТЬ БУРИ',
|
||||
style: TextStyle(
|
||||
fontFamily: 'JetBrains Mono',
|
||||
color: Color(0x80ECE4D0),
|
||||
fontSize: 10,
|
||||
letterSpacing: 2,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Container(
|
||||
@@ -292,6 +335,8 @@ class MwLauncherShell extends StatelessWidget {
|
||||
required this.onMinimize,
|
||||
required this.onMaximizeRestore,
|
||||
required this.onClose,
|
||||
this.onSettings,
|
||||
this.username,
|
||||
this.assetPackage,
|
||||
});
|
||||
|
||||
@@ -304,6 +349,8 @@ class MwLauncherShell extends StatelessWidget {
|
||||
final VoidCallback onMinimize;
|
||||
final VoidCallback onMaximizeRestore;
|
||||
final VoidCallback onClose;
|
||||
final VoidCallback? onSettings;
|
||||
final String? username;
|
||||
final String? assetPackage;
|
||||
|
||||
@override
|
||||
@@ -313,12 +360,57 @@ class MwLauncherShell extends StatelessWidget {
|
||||
assetPackage: assetPackage,
|
||||
child: Stack(
|
||||
children: [
|
||||
const Positioned(
|
||||
Positioned(
|
||||
left: 240,
|
||||
right: 0,
|
||||
top: 0,
|
||||
bottom: 26,
|
||||
child: Stack(
|
||||
fit: StackFit.expand,
|
||||
children: [
|
||||
Image.asset(
|
||||
'assets/launcher_key_art.png',
|
||||
package: assetPackage,
|
||||
fit: BoxFit.cover,
|
||||
alignment: Alignment.center,
|
||||
errorBuilder: (_, _, _) => const SizedBox.shrink(),
|
||||
),
|
||||
const DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
stops: [0, .3, .7, 1],
|
||||
colors: [
|
||||
Color(0xF2070A18),
|
||||
Color(0xB8070A18),
|
||||
Color(0x22070A18),
|
||||
Color(0x73070A18),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
const DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
stops: [0, .58, 1],
|
||||
colors: [
|
||||
Color(0x52070A18),
|
||||
Color(0x00070A18),
|
||||
Color(0xD9070A18),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
left: 0,
|
||||
top: 0,
|
||||
bottom: 0,
|
||||
width: 240,
|
||||
child: MwGameRail(),
|
||||
child: MwGameRail(onSettings: onSettings, username: username),
|
||||
),
|
||||
Positioned(
|
||||
left: 272,
|
||||
|
||||
Reference in New Issue
Block a user