terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Add icon to profile title on settings UI

Open cinnamon-msft opened this issue 5 years ago β€’ 30 comments

Description of the new feature/enhancement

If would be cool if we displayed the icon of the profile at the top of the profile page on the settings UI.

profile-icon

Proposed technical implementation details (optional)

cinnamon-msft avatar Apr 02 '21 17:04 cinnamon-msft

Hi, do you have any UI mockups (for dimensions, spacings etc) for the icon?

vastatio-xoxo avatar Apr 27 '21 07:04 vastatio-xoxo

Hey can you assign this to me

HimanshuMahto avatar Oct 18 '23 04:10 HimanshuMahto

@HimanshuMahto Let us know if you need any help ☺️

zadjii-msft avatar Oct 18 '23 14:10 zadjii-msft

Since I'm new to this can you help me @zadjii-msft

HimanshuMahto avatar Oct 18 '23 14:10 HimanshuMahto

Sure thing! I'd start by looking at #10046. That was an earlier attempt to do this, which we ultimately reverted in #10124. We had to revert that due to some crash when you saved the settings, but I'm thinking that crash is probably no longer applicable?

Now, the thing is, we've kinda re-written the settings UI since that original PR. It's still structurally pretty much the same, but there's been some minor changes to account for the Windows 11 style differences. You'll probably still want to put the icon in: https://github.com/microsoft/terminal/blob/174585740759f3e473c5a4efe3207a20d2c78511/src/cascadia/TerminalSettingsEditor/MainPage.xaml#L67-L98

zadjii-msft avatar Oct 18 '23 14:10 zadjii-msft

okay, I got it. hey, Can I get your contact so that I can ask you questions in person if you don't mind? @zadjii-msft

HimanshuMahto avatar Oct 19 '23 18:10 HimanshuMahto

To be totally honest - I'd prefer to keep discussion on GitHub. Reasons include (but aren't limited to):

  1. I'm terrible at replying to mails. There's just too much volume, and I'm known to read an email, not immediately reply, then forget about it. I'm somehow better about replying to GitHub
  2. No one should judge anyone for asking questions. Ever. How could anyone ever learn anything without starting by asking questions?
  3. If you have questions about contributing to the Terminal (or really any part of our dev stack here), then chances are, others will too. Better to leave an archive of notes for future people to learn from too ☺️

zadjii-msft avatar Oct 19 '23 21:10 zadjii-msft

okay, thanks for the advice.

HimanshuMahto avatar Oct 20 '23 04:10 HimanshuMahto

Hey, @zadjii-msft I'm new to this and don't know how to run and see the changes though I have installed powershell pro tools and powershell in the VS code and did try to run the code but it wasn't showing anything. Can you please help me. I know its a silly question but I don't know how to do it and want to learn want to contribute to this.

HimanshuMahto avatar Oct 20 '23 19:10 HimanshuMahto

Hey @zadjii-msft @DHowett @cinnamon-msft need a help

HimanshuMahto avatar Oct 21 '23 19:10 HimanshuMahto

@HimanshuMahto Did you try following these steps in the README?

Once you've got the code checked out and the tools installed, the easiest way to test the code is to open up OpenConsole.sln, set the config to image (or x86 if you're on an x86 machine for some reason)

and hit the big green play button to start debugging.

zadjii-msft avatar Oct 24 '23 17:10 zadjii-msft

Got it @zadjii-msft. Thanks a lot i will start working on it.

HimanshuMahto avatar Oct 24 '23 17:10 HimanshuMahto

Hey, @zadjii-msft, I tried what you said but its still not working. Screenshot 2023-10-25 210800

HimanshuMahto avatar Oct 25 '23 15:10 HimanshuMahto

Hii, seems like the last person was unsuccessful at this. Can you assign this to me? It will be my first issue.

rohiitgit avatar Mar 10 '24 15:03 rohiitgit

You can just go ahead and start working on things without necessarily being assigned. Usually we really only use the Assignees field if someone on the core team has to be the one to deal with an issue 😝

zadjii-msft avatar Mar 11 '24 11:03 zadjii-msft

Hi @zadjii-msft, pretty much done with the implementation of this (i.e. just kinda copying your old code across). Did you ever manage to overcome the resolution scaling issues? The font icons look fine, but the powershell icon, when scaled up to a height of 28 looks quite horrible.

Kore-rep avatar Apr 17 '24 17:04 Kore-rep

@Kore-rep Are you still working on this? Can I start working on this if you're not working?

aditya-sahu avatar Nov 25 '24 04:11 aditya-sahu

Sorry, I think I missed that earlier message πŸ˜…

I never really looked into the image scaling. It sounds like something I looked at briefly, where IconPathConverter always loads icons at a fixed size:

https://github.com/microsoft/terminal/blob/ae90d52bb18fc7ad1d509aa81c7df71ada0e3b1f/src/cascadia/UIHelpers/IconPathConverter.cpp#L335-L336 https://github.com/microsoft/terminal/blob/ae90d52bb18fc7ad1d509aa81c7df71ada0e3b1f/src/cascadia/UIHelpers/IconPathConverter.cpp#L158-L160

but I can't be sure. I'd reckon it's probably more valuable to put out a PR with this change as it is now. That'd force our hands to make sure we fix that :P

zadjii-msft avatar Nov 25 '24 11:11 zadjii-msft

Hi @aditya-sahu, I've opened a PR with my changes, feel free to make any changes you want to for that. I never resolved the image scaling issue, or did any particular refactoring to make things nicer, its a pretty barebones implementation

https://github.com/microsoft/terminal/pull/18244

Kore-rep avatar Nov 25 '24 13:11 Kore-rep

is this issue still open to contribute?

Vaishhhnavi77 avatar Feb 24 '25 11:02 Vaishhhnavi77