Web: Client: JavascriptSDK: hint images for options in dark mode were corrected

This commit is contained in:
Vladimir Khvan 2024-03-26 14:35:06 +05:00
parent 4186917c5c
commit 11189a341a
15 changed files with 18 additions and 75 deletions

View File

@ -59,12 +59,12 @@ import ColumnsUrl from "PUBLIC_DIR/images/sdk-presets_columns.react.svg?url";
import ActionButtonUrl from "PUBLIC_DIR/images/sdk-presets_action-button.react.svg?url";
import SearchUrl from "PUBLIC_DIR/images/sdk-presets_search.react.svg?url";
import HeaderUrl from "PUBLIC_DIR/images/sdk-presets_header.react.svg?url";
import LeftMenuDarkUrl from "PUBLIC_DIR/images/sdk-presets_left-menu_dark.react.svg?url";
import TitleDarkUrl from "PUBLIC_DIR/images/sdk-presets_title_dark.react.svg?url";
import ColumnsDarkUrl from "PUBLIC_DIR/images/sdk-presets_columns_dark.react.svg?url";
import ActionButtonDarkUrl from "PUBLIC_DIR/images/sdk-presets_action-button_dark.react.svg?url";
import SearchDarkUrl from "PUBLIC_DIR/images/sdk-presets_search_dark.react.svg?url";
import HeaderDarkUrl from "PUBLIC_DIR/images/sdk-presets_header_dark.react.svg?url";
import LeftMenuDarkUrl from "PUBLIC_DIR/images/sdk-presets_left-menu_dark.png?url";
import TitleDarkUrl from "PUBLIC_DIR/images/sdk-presets_title_dark.png?url";
import ColumnsDarkUrl from "PUBLIC_DIR/images/sdk-presets_columns_dark.png?url";
import ActionButtonDarkUrl from "PUBLIC_DIR/images/sdk-presets_action-button_dark.png?url";
import SearchDarkUrl from "PUBLIC_DIR/images/sdk-presets_search_dark.png?url";
import HeaderDarkUrl from "PUBLIC_DIR/images/sdk-presets_header_dark.png?url";
const showPreviewThreshold = 720;
@ -851,7 +851,7 @@ const Manager = (props) => {
<TooltipContent
title={t("Menu")}
description={t("MenuDescription")}
img={LeftMenuUrl}
img={theme.isBase ? LeftMenuUrl : LeftMenuDarkUrl}
/>
}
/>
@ -872,7 +872,7 @@ const Manager = (props) => {
<TooltipContent
title={t("Common:Title")}
description={t("ManagerTitleDescription")}
img={TitleUrl}
img={theme.isBase ? TitleUrl : TitleDarkUrl}
/>
}
/>
@ -892,7 +892,7 @@ const Manager = (props) => {
<TooltipContent
title={t("SettingUpColumns")}
description={t("SettingUpColumnsDescription")}
img={ColumnsUrl}
img={theme.isBase ? ColumnsUrl : ColumnsDarkUrl}
/>
}
/>
@ -912,7 +912,7 @@ const Manager = (props) => {
<TooltipContent
title={t("ActionButton")}
description={t("ActionButtonDescription")}
img={ActionButtonUrl}
img={theme.isBase ? ActionButtonUrl : ActionButtonDarkUrl}
/>
}
/>
@ -932,7 +932,7 @@ const Manager = (props) => {
<TooltipContent
title={t("SearchBlock")}
description={t("ManagerSearchBlockDescription")}
img={SearchUrl}
img={theme.isBase ? SearchUrl : SearchDarkUrl}
/>
}
/>
@ -953,7 +953,7 @@ const Manager = (props) => {
<TooltipContent
title={t("Header")}
description={t("HeaderDescription")}
img={HeaderUrl}
img={theme.isBase ? HeaderUrl : HeaderDarkUrl}
/>
}
/>

View File

@ -59,8 +59,8 @@ import { RoomsType } from "@docspace/shared/enums";
import TitleUrl from "PUBLIC_DIR/images/sdk-presets_title.react.svg?url";
import SearchUrl from "PUBLIC_DIR/images/sdk-presets_search.react.svg?url";
import TitleDarkUrl from "PUBLIC_DIR/images/sdk-presets_title_dark.react.svg?url";
import SearchDarkUrl from "PUBLIC_DIR/images/sdk-presets_search_dark.react.svg?url";
import TitleDarkUrl from "PUBLIC_DIR/images/sdk-presets_title_dark.png?url";
import SearchDarkUrl from "PUBLIC_DIR/images/sdk-presets_search_dark.png?url";
const showPreviewThreshold = 720;

View File

@ -55,6 +55,10 @@ const HeaderContainer = styled.header`
const ImgWrapper = styled.div`
margin-top: 16px;
img {
width: 100%;
}
`;
export const TooltipContent = ({ title, description, img }) => {

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 17 KiB