Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Playground] [Frontend] Brand colors in Playground flutter_code_editor #27218

Merged
merged 5 commits into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@
* limitations under the License.
*/

import 'dart:async';

import 'package:easy_localization/easy_localization.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:get_it/get_it.dart';
import 'package:playground_components/playground_components.dart';
import 'package:url_launcher/url_launcher.dart';

import '../../assets/assets.gen.dart';
import '../../auth/notifier.dart';
Expand Down Expand Up @@ -104,17 +107,13 @@ class _Buttons extends StatelessWidget {
children: [
_IconLabel(
isSvg: false,
onTap: () {},
onTap: () {
unawaited(launchUrl(Uri.parse(BeamLinks.website)));
},
iconPath: Assets.png.profileWebsite.path,
label: 'ui.toWebsite'.tr(),
),
const BeamDivider(),
_IconLabel(
onTap: () {},
iconPath: Assets.svg.profileAbout,
label: 'ui.about'.tr(),
),
const BeamDivider(),
_IconLabel(
onTap: () async {
await authNotifier.logOut();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ class BeamLightThemeColors {
static const primary = Color(0xffE74D1A);
static const icon = BeamColors.grey3;

static const code1 = Color(0xffDA2833);
static const code1 = primary;
static const code2 = Color(0xff5929B4);
static const codeComment = Color(0xff4C6B60);
static const codeComment = Color(0xff1B5E20);
static const codeBackground = Color(0xffFEF6F3);
}

Expand All @@ -79,8 +79,8 @@ class BeamDarkThemeColors {
static const primary = Color(0xffF26628);
static const icon = Color(0xff606772);

static const code1 = Color(0xffDA2833);
static const code2 = Color(0xff5929B4);
static const codeComment = Color(0xff4C6B60);
static const code1 = Color(0xffFFEB3B);
static const code2 = primary;
static const codeComment = Color(0xff689F38);
static const codeBackground = Color(0xff231B1B);
}