-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Allow Setting Window Title #806
Conversation
rio-backend/src/config/window.rs
Outdated
@@ -57,6 +57,8 @@ pub struct Window { | |||
pub decorations: Decorations, | |||
#[serde(default = "bool::default", rename = "macos-use-unified-titlebar")] | |||
pub macos_use_unified_titlebar: bool, | |||
#[serde(skip_serializing)] | |||
pub title: Option<String>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we rename it for title_placeholder
or initial_title
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! Will change
Overall it looks good! thanks for the PR @xsadia I appreciate! Would you mind also to include it in the docs? |
Absolutely, I'll update the docs as well shortly! |
@raphamorim anything else you'd like me to change just let me know! |
Thank you @xsadia 🙏 ⭐ |
rio-backend/src/config/window.rs
Outdated
@@ -57,6 +57,8 @@ pub struct Window { | |||
pub decorations: Decorations, | |||
#[serde(default = "bool::default", rename = "macos-use-unified-titlebar")] | |||
pub macos_use_unified_titlebar: bool, | |||
#[serde(skip_serializing)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just one small thing: add rename = "initial-title"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done @raphamorim
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
@xsadia feel free to join our discord :) https://discord.gg/zRvJjmKGwS |
This PR adds support for specifying a custom window title using the --title argument in the CLI. This feature allows users to define a specific name for the window, improving usability in multi-window setups and enabling better integration with window managers.
Default window title
Custom name with
--title
flagcloses #405