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

[Feature] Operative UI Style #102

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

PuroSlavKing
Copy link
Member

Описание PR

Sigma UI style


Медиа

Содержание

image
(у меня монитор не вмещает 100% масштаб)


Изменения

🆑 PuroSlavKing

  • add: Added "Operative" UI style / Добавлен стиль интерфейса "Оперативник"

Copy link
Contributor

coderabbitai bot commented Oct 26, 2024

Walkthrough

The pull request introduces new entries and configurations for the HUD theme in both English and Russian locales, enhancing the user interface customization options. Specifically, it adds the ui-options-hud-theme-operative key with the value "Operative" in the English locale and its Russian equivalent "Оперативник." Additionally, it defines a new HUD theme in hud.yml and a UI theme in themes.yml, both associated with the SS14OperativeTheme, including resource paths and color definitions.

Changes

File Path Change Summary
Resources/Locale/en-US/_white/escape-menu/ui/options.ftl Added new entry ui-options-hud-theme-operative with value Operative.
Resources/Locale/ru-RU/_white/escape-menu/ui/options.ftl Added new entry ui-options-hud-theme-operative with value Оперативник.
Resources/Prototypes/_White/hud.yml Introduced new HUD theme configuration with ID SS14OperativeTheme, name ui-options-hud-theme-operative, path /Textures/_White/Interface/Operative/, and order 7.
Resources/Prototypes/_White/themes.yml Added new UI theme configuration SS14OperativeTheme with associated resource path and color definitions.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between d703498 and 424a77a.

⛔ Files ignored due to path filters (45)
  • Resources/Textures/_White/Interface/Operative/SlotBackground.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/back.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/belt.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/ears.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/ears_extra.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/glasses.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/gloves.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/hand_l.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/hand_l_no_letter.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/hand_r.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/hand_r_no_letter.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/head.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/id.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/mask.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/neck.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/pocket.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/shoes.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/socks.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/suit.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/suit_storage.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/toggle-alt.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/toggle.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/underwearb.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/underweart.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/uniform.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/web.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Slots/wrists.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/piece_bottom.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/piece_bottomLeft.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/piece_bottomRight.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/piece_center.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/piece_left.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/piece_right.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/piece_top.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/piece_topLeft.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/piece_topRight.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/sidebar_bottom.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/sidebar_mid.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/sidebar_top.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/tile_blocked.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/tile_blocked_opaque.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/tile_empty.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/Storage/tile_empty_opaque.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/slot_highlight.png is excluded by !**/*.png
  • Resources/Textures/_White/Interface/Operative/template_small.png is excluded by !**/*.png
📒 Files selected for processing (4)
  • Resources/Locale/en-US/_white/escape-menu/ui/options.ftl (1 hunks)
  • Resources/Locale/ru-RU/_white/escape-menu/ui/options.ftl (1 hunks)
  • Resources/Prototypes/_White/hud.yml (1 hunks)
  • Resources/Prototypes/_White/themes.yml (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • Resources/Locale/en-US/_white/escape-menu/ui/options.ftl
  • Resources/Locale/ru-RU/_white/escape-menu/ui/options.ftl
🔇 Additional comments (3)
Resources/Prototypes/_White/hud.yml (1)

5-5: Verify theme ordering.

The order value of 7 suggests this theme will be displayed after other themes in the UI. Please ensure this ordering aligns with the intended position in the theme selection dropdown.

Let's check other theme orders to confirm proper positioning:

✅ Verification successful

Order value 7 is correctly positioned as the last theme in sequence

Based on the search results, the theme ordering is consistent:

  • Minimalist (order: 1)
  • Slimecore (order: 2)
  • Plasmafire (order: 3)
  • Clockwork (order: 4)
  • Ashen (order: 5)
  • Retro (order: 6)
  • Operative (order: 7)

The order value of 7 for the Operative theme appropriately places it as the last item in the theme selection dropdown.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check ordering of all HUD themes

# Test: Extract all hudTheme entries with their order values
rg -U "type: hudTheme\n.*\n.*\n.*\n.*order: \d+" --multiline

Length of output: 1892

Resources/Prototypes/_White/themes.yml (2)

1-3: LGTM! Theme configuration follows the standard format.

The theme configuration is well-structured with proper type definition, unique identifier, and correct resource path format.


5-14: Verify color contrast ratios for accessibility.

While the color choices appear intentional, it's important to ensure they meet WCAG accessibility guidelines for contrast ratios, particularly for text colors:

  • whiteText: "#FFF5EE" should have sufficient contrast against background colors
  • slotText: "#333850" might need verification against slotColor: "#0f1215"

Resources/Prototypes/_White/hud.yml Show resolved Hide resolved
Resources/Prototypes/_White/themes.yml Show resolved Hide resolved
@Remuchi Remuchi merged commit a774f54 into WWhiteDreamProject:master Oct 27, 2024
11 checks passed
@PuroSlavKing PuroSlavKing deleted the OperativeUI branch October 31, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants