Skip to content

Commit

Permalink
fix transparent textbrowser issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniol-lck committed Feb 22, 2022
1 parent 5169b18 commit 9f2e67e
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/qss/basic.qss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ QWidget:focus{
outline: none;
}

QScrollArea, QScrollArea .QWidget {
QTextBrowser, QScrollArea, QScrollArea .QWidget {
background-color: transparent;
border-color: transparent;
}
Expand Down
2 changes: 1 addition & 1 deletion src/qss/dark.qss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ QLabel {
background-color: transparent;
}

QScrollArea, QScrollArea .QWidget {
QTextBrowser, QScrollArea, QScrollArea .QWidget {
background-color: transparent;
border-color: transparent;
}
Expand Down
2 changes: 1 addition & 1 deletion src/qss/light.qss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ QWidget[enabled=false] {
background-color: #cfcfcf;
}

QScrollArea, QScrollArea .QWidget {
QTextBrowser, QScrollArea, QScrollArea .QWidget {
background-color: transparent;
border-color: transparent;
}
Expand Down
4 changes: 1 addition & 3 deletions src/ui/curseforge/curseforgemodinfowidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<property name="font">
<font>
<pointsize>15</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
Expand Down Expand Up @@ -135,9 +136,6 @@
</item>
<item>
<widget class="QTextBrowser" name="modDescription">
<property name="styleSheet">
<string notr="true">background-color: transparent;</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
Expand Down
3 changes: 0 additions & 3 deletions src/ui/github/githubreleaseinfowidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
</item>
<item row="1" column="0">
<widget class="QTextBrowser" name="body">
<property name="styleSheet">
<string notr="true">background-color: transparent;</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
Expand Down
5 changes: 1 addition & 4 deletions src/ui/local/localmoddialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,6 @@
</item>
<item row="2" column="1">
<widget class="QTextBrowser" name="modDescription">
<property name="styleSheet">
<string notr="true">background-color: transparent;</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
Expand Down Expand Up @@ -440,7 +437,7 @@
<customwidget>
<class>TagsFlowWidget</class>
<extends>QWidget</extends>
<header>ui/tagsflowwidget.h</header>
<header location="global">ui/tagsflowwidget.h</header>
<container>1</container>
</customwidget>
</customwidgets>
Expand Down
13 changes: 6 additions & 7 deletions src/ui/local/localmodinfowidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<item row="0" column="0">
<widget class="QStackedWidget" name="stackedWidget">
<property name="currentIndex">
<number>0</number>
<number>1</number>
</property>
<widget class="QWidget" name="page_3">
<layout class="QVBoxLayout" name="verticalLayout_2">
Expand All @@ -44,6 +44,7 @@
<property name="font">
<font>
<pointsize>15</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
Expand Down Expand Up @@ -200,8 +201,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>102</width>
<height>399</height>
<width>433</width>
<height>419</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
Expand All @@ -216,6 +217,7 @@
<property name="font">
<font>
<pointsize>15</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
Expand Down Expand Up @@ -271,9 +273,6 @@
</item>
<item>
<widget class="QTextBrowser" name="modDescription">
<property name="styleSheet">
<string notr="true">background-color: transparent;</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
Expand Down Expand Up @@ -309,7 +308,7 @@
<customwidget>
<class>TagsFlowWidget</class>
<extends>QWidget</extends>
<header>ui/tagsflowwidget.h</header>
<header location="global">ui/tagsflowwidget.h</header>
<container>1</container>
</customwidget>
</customwidgets>
Expand Down
4 changes: 1 addition & 3 deletions src/ui/modmanagerupdatedialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<property name="font">
<font>
<pointsize>15</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
Expand All @@ -35,9 +36,6 @@
</item>
<item>
<widget class="QTextBrowser" name="body">
<property name="styleSheet">
<string notr="true">background-color: transparent;</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
Expand Down
4 changes: 1 addition & 3 deletions src/ui/modrinth/modrinthmodinfowidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<property name="font">
<font>
<pointsize>15</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
Expand Down Expand Up @@ -129,9 +130,6 @@
</item>
<item>
<widget class="QTextBrowser" name="modDescription">
<property name="styleSheet">
<string notr="true">background-color: transparent;</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
Expand Down

0 comments on commit 9f2e67e

Please sign in to comment.