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

Improved UI for Reading List Bar and Table of Contents #1256

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

heropj
Copy link

@heropj heropj commented Nov 23, 2024

fix #1247

Changes:

  • Standardized UI for Reading List Bar and Table of Contents.

Screenshot 2024-11-23 195403
Screenshot 2024-11-23 195416

@kelson42
Copy link
Collaborator

@heropj Thank you for your PR. I have rebased it on latest main branch and we will review it.

Copy link
Collaborator

@ShaopengLin ShaopengLin left a comment

Choose a reason for hiding this comment

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

@heropj Please first remove the superfluous changes before we move to a formal review. The changes to some files like the icons may be due to your formatter? It is important to keep commit footprint at a minimum, as it makes it difficult for reviewers to navigate your changes.

@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
<height>300</height>
Copy link
Collaborator

Choose a reason for hiding this comment

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

The changes in this file are unnecessary.

@@ -94,7 +92,7 @@ void TableOfContentBar::setupTree(const QJsonObject& headers)
if (headerUrl != currentUrl)
return;

m_url = headerUrl;
m_url = headerUrl;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove trailing space.

@@ -9,10 +9,8 @@ TableOfContentBar::TableOfContentBar(QWidget *parent) :
ui(new Ui::tableofcontentbar)
{
ui->setupUi(this);
ui->titleLabel->setFont(QFont("Selawik", 18, QFont::Weight::Medium));
// ui->titleLabel->setFont(QFont("Selawik", 18 , QFont::Weight::Medium));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do not leave commented out code without explanation.

#readinglistbar QLabel {
/* General Style Improvements */
#readinglistbar, #tableofcontentbar {
/* background-color: #F9F9F9; */
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please do not leave commented out code without reasoning

@heropj
Copy link
Author

heropj commented Nov 27, 2024

@ShaopengLin Sorry for the inconvenience caused by the superfluous changes. In my latest commit I have ensured no such changes are present. I’ve addressed other changes also as per your suggestion.

@ShaopengLin
Copy link
Collaborator

ShaopengLin commented Nov 27, 2024

@heropj There are still 46 files changed. Please only leave those which are relevant.

@heropj
Copy link
Author

heropj commented Nov 27, 2024

@ShaopengLin Got it..I have removed the commits which caused those unnecessary changes and have made a fresh commit with relevant changes only.

Copy link
Collaborator

@ShaopengLin ShaopengLin left a comment

Choose a reason for hiding this comment

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

@heropj The issue wants you to match ReadingList to the behaviour and look of the TOC, and we should not change the TOC. There are reasons for the design of TOC to be like this so please do not change it and focus on the 3 points I mentioned in the Issue.

SInce there are only a few UI changes, I will first focus on the UI. Once that's up-to-par (Kelson might also grill you similar to how he did to me :) later ), I can review the coding part.

@heropj
Copy link
Author

heropj commented Nov 30, 2024

@ShaopengLin Thank you for the feedback, I will undo changes in TOC and make RL ui similar to it.

@heropj
Copy link
Author

heropj commented Dec 1, 2024

@ShaopengLin
Screenshot 2024-12-01 123045
Screenshot 2024-12-01 123058

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.

Make ReadingList UI Consistent
3 participants