Skip to content

Commit

Permalink
Merge branch 'notnite/moonlight-updating' of github.com:moonlight-mod…
Browse files Browse the repository at this point in the history
…/moonlight into notnite/moonlight-updating
  • Loading branch information
NotNite committed Oct 9, 2024
2 parents 6071ab9 + fde3b8e commit 1f53eb6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/core-extensions/src/moonbase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ export const webpackModules: Record<string, ExtensionWebpackModule> = {
export const styles = [
".moonbase-settings > :first-child { margin-top: 0px; }",
"textarea.moonbase-resizeable { resize: vertical }",
".moonbase-updates-notice { background-color: #222034; color: #FFFBA6; }"
".moonbase-updates-notice { background-color: #222034; color: #FFFBA6; line-height: unset; height: 36px; }",
".moonbase-updates-notice_text-wrapper { display: inline-flex; align-items: center; line-height: 36px; gap: 2px; }"
];
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import spacepack from "@moonlight-mod/wp/spacepack_spacepack";
import { MoonbaseSettingsStore } from "@moonlight-mod/wp/moonbase_stores";
import Notices from "@moonlight-mod/wp/notices_notices";
import { MoonlightBranch } from "types/src";
import React from "@moonlight-mod/wp/react";
import * as Components from "@moonlight-mod/wp/discord/components/common/index";

// FIXME: not indexed as importable
const Constants = spacepack.require("discord/Constants");
Expand All @@ -10,6 +12,8 @@ const UserSettingsSections = spacepack.findObjectFromKey(
"APPEARANCE_THEME_PICKER"
);

const { ThemeDarkIcon } = Components;

function plural(str: string, num: number) {
return `${str}${num > 1 ? "s" : ""}`;
}
Expand Down Expand Up @@ -58,7 +62,12 @@ function listener() {
if (message != null) message += ".";

Notices.addNotice({
element: message,
element: (
<div className="moonbase-updates-notice_text-wrapper">
<ThemeDarkIcon size="sm" color="currentColor" />
{message}
</div>
),
color: "moonbase-updates-notice",
buttons: [
{
Expand Down

0 comments on commit 1f53eb6

Please sign in to comment.