Skip to content

Titlebar revamp#170

Merged
ChugunovRoman merged 19 commits intoFigma-Linux:masterfrom
ilyasakin:titlebar-revamp
Jan 24, 2021
Merged

Titlebar revamp#170
ChugunovRoman merged 19 commits intoFigma-Linux:masterfrom
ilyasakin:titlebar-revamp

Conversation

@ilyasakin
Copy link
Contributor

@ilyasakin ilyasakin commented Jan 22, 2021

This PR;

  • Makes icons on Titlebar look sharp
  • Implements change of maximize/restore icon when window is maximized/restored
  • Replaces Main icon with Figma icon
  • Adds Inter font (font on tabs)
  • Changes default titlebar height to 31px (Visual Studio Code's titlebar height)
  • Generally makes titlebar look like official figma titlebar

Feel free to roast the code.

}

&_main_active {
background-color: #ffffff;
Copy link
Collaborator

Choose a reason for hiding this comment

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

All colors value must set from the css variables. This need for correctly works of themes.

Copy link
Collaborator

Choose a reason for hiding this comment

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

For bg uses var(--bg-tab)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one needs to use seperate css variable rather than a common variable that effects all tabs. Because only main button turns white when active.

Should I create one?

Copy link
Collaborator

@ChugunovRoman ChugunovRoman Jan 24, 2021

Choose a reason for hiding this comment

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

I think the main button shouldn't change color on white, it just accept color such as bg color of a current web page. In the official desktop app case , the button change active bg color on bg color of the projects browser page.
I our case, the main button should changes own bg color on bg color of project browser too, but given current theme

Copy link
Contributor Author

@ilyasakin ilyasakin Jan 24, 2021

Choose a reason for hiding this comment

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

Well, I did that on last commit. Works for all themes without need to edit them. But the problem is it inverts the color (for icon contrast) and it can lead to some unintended ugly color combinations (Check purple and blue theme for example). I think we need a new variable like var(--fg-tab-main-active).

If it's ok I will add var(--fg-tab-main-active) and open a PR on https://github.com/Figma-Linux/figma-linux-themes/ for corresponding changes.

Copy link
Collaborator

Choose a reason for hiding this comment

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

No needed add the new css variable, maybe just need will update themes in the themes repository


&:hover {
cursor: default;
background-color: #ffffff;
Copy link
Collaborator

Choose a reason for hiding this comment

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

var(--bg-tab-hover)

&:hover {
cursor: default;
background-color: #ffffff;
color: #000000;
Copy link
Collaborator

Choose a reason for hiding this comment

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

var(--fg-tab-hover)

@ChugunovRoman ChugunovRoman self-requested a review January 24, 2021 16:46
Copy link
Collaborator

@ChugunovRoman ChugunovRoman left a comment

Choose a reason for hiding this comment

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

Ok

@prateekmedia
Copy link

Can you also make the titlebar inline like that of firefox or chrome so that it looks native and consume less space at top, like that on windows

@ChugunovRoman
Copy link
Collaborator

Can you also make the titlebar inline like that of firefox or chrome so that it looks native and consume less space at top, like that on windows

The titlebar already look nearly as titlebar from official desktop app

@ChugunovRoman ChugunovRoman merged commit bf5b790 into Figma-Linux:master Jan 24, 2021
ChugunovRoman added a commit that referenced this pull request Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants