Skip to content

Commit

Permalink
List of changes:
Browse files Browse the repository at this point in the history
- Improved interface
- Added the ability to pause or play by clicking on the video
- Many other small improvements
  • Loading branch information
Communist02 committed May 4, 2024
1 parent 2ee79e1 commit 18bae76
Show file tree
Hide file tree
Showing 26 changed files with 669 additions and 1,077 deletions.
26 changes: 5 additions & 21 deletions about_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
################################################################################
## Form generated from reading UI file 'about_window.ui'
##
## Created by: Qt User Interface Compiler version 6.6.2
## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
Expand All @@ -23,26 +23,10 @@ class Ui_AboutWindow(object):
def setupUi(self, AboutWindow):
if not AboutWindow.objectName():
AboutWindow.setObjectName(u"AboutWindow")
AboutWindow.resize(520, 226)
AboutWindow.resize(520, 280)
icon = QIcon()
icon.addFile(u"../favicon.ico", QSize(), QIcon.Normal, QIcon.Off)
AboutWindow.setWindowIcon(icon)
AboutWindow.setStyleSheet(u"QDialog {\n"
" background-color: rgb(245, 241, 235);\n"
"}\n"
"\n"
"QLabel {\n"
" color: rgb(87, 86, 86);\n"
"}\n"
"\n"
"QCheckBox {\n"
" color: rgb(87, 86, 86);\n"
"}\n"
"\n"
"QPushButton {\n"
" background-color: rgb(87, 86, 86);\n"
" color: rgb(245, 241, 235);\n"
"}")
self.gridLayout = QGridLayout(AboutWindow)
self.gridLayout.setObjectName(u"gridLayout")
self.verticalLayout = QVBoxLayout()
Expand All @@ -64,7 +48,7 @@ def setupUi(self, AboutWindow):
sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
self.label_3.setSizePolicy(sizePolicy)
self.label_3.setMaximumSize(QSize(300, 16777215))
self.label_3.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)
self.label_3.setAlignment(Qt.AlignmentFlag.AlignLeading|Qt.AlignmentFlag.AlignLeft|Qt.AlignmentFlag.AlignTop)
self.label_3.setWordWrap(True)

self.verticalLayout.addWidget(self.label_3)
Expand All @@ -85,8 +69,8 @@ def setupUi(self, AboutWindow):

self.buttonBox = QDialogButtonBox(AboutWindow)
self.buttonBox.setObjectName(u"buttonBox")
self.buttonBox.setOrientation(Qt.Horizontal)
self.buttonBox.setStandardButtons(QDialogButtonBox.Close)
self.buttonBox.setOrientation(Qt.Orientation.Horizontal)
self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Close)

self.horizontalLayout_2.addWidget(self.buttonBox)

Expand Down
20 changes: 2 additions & 18 deletions android_config_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
################################################################################
## Form generated from reading UI file 'android_config_window.ui'
##
## Created by: Qt User Interface Compiler version 6.6.2
## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
Expand All @@ -27,22 +27,6 @@ def setupUi(self, AndroidConfigWindow):
icon = QIcon()
icon.addFile(u"../favicon.ico", QSize(), QIcon.Normal, QIcon.Off)
AndroidConfigWindow.setWindowIcon(icon)
AndroidConfigWindow.setStyleSheet(u"QDialog {\n"
" background-color: rgb(245, 241, 235);\n"
"}\n"
"\n"
"QLabel {\n"
" color: rgb(87, 86, 86);\n"
"}\n"
"\n"
"QCheckBox {\n"
" color: rgb(87, 86, 86);\n"
"}\n"
"\n"
"QPushButton {\n"
" background-color: rgb(87, 86, 86);\n"
" color: rgb(245, 241, 235);\n"
"}")
self.verticalLayout = QVBoxLayout(AndroidConfigWindow)
self.verticalLayout.setObjectName(u"verticalLayout")
self.label = QLabel(AndroidConfigWindow)
Expand Down Expand Up @@ -76,7 +60,7 @@ def setupUi(self, AndroidConfigWindow):
font.setFamilies([u"Consolas"])
font.setPointSize(10)
self.plainTextEdit.setFont(font)
self.plainTextEdit.setInputMethodHints(Qt.ImhNone)
self.plainTextEdit.setInputMethodHints(Qt.InputMethodHint.ImhNone)
self.plainTextEdit.setReadOnly(True)

self.verticalLayout.addWidget(self.plainTextEdit)
Expand Down
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def __init__(self, filename):
if os.name == 'nt':
self.filepath = os.path.join(os.getenv('APPDATA'), 'Anime Player', filename)
else:
self.filepath = os.path.join(os.getenv('HOME'), 'Anime Player', filename)
self.filepath = os.path.join(os.getenv('HOME'), '.anime_player', filename)
self.config = {}
self.load_config()

Expand Down
Binary file modified doc/anime4k.webp
Binary file not shown.
Binary file modified doc/screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 6 additions & 24 deletions forms/about_window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>520</width>
<height>226</height>
<height>280</height>
</rect>
</property>
<property name="windowTitle">
Expand All @@ -17,24 +17,6 @@
<iconset>
<normaloff>../favicon.ico</normaloff>../favicon.ico</iconset>
</property>
<property name="styleSheet">
<string notr="true">QDialog {
background-color: rgb(245, 241, 235);
}

QLabel {
color: rgb(87, 86, 86);
}

QCheckBox {
color: rgb(87, 86, 86);
}

QPushButton {
background-color: rgb(87, 86, 86);
color: rgb(245, 241, 235);
}</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<layout class="QVBoxLayout" name="verticalLayout">
Expand Down Expand Up @@ -71,7 +53,7 @@ QPushButton {
Site: https://github.com/Communist02/AnimePlayer</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
Expand All @@ -81,7 +63,7 @@ Site: https://github.com/Communist02/AnimePlayer</string>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
Expand All @@ -105,10 +87,10 @@ Site: https://github.com/Communist02/AnimePlayer</string>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Close</set>
<set>QDialogButtonBox::StandardButton::Close</set>
</property>
</widget>
</item>
Expand Down Expand Up @@ -144,7 +126,7 @@ Site: https://github.com/Communist02/AnimePlayer</string>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
Expand Down
20 changes: 1 addition & 19 deletions forms/android_config_window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,6 @@
<iconset>
<normaloff>../favicon.ico</normaloff>../favicon.ico</iconset>
</property>
<property name="styleSheet">
<string notr="true">QDialog {
background-color: rgb(245, 241, 235);
}

QLabel {
color: rgb(87, 86, 86);
}

QCheckBox {
color: rgb(87, 86, 86);
}

QPushButton {
background-color: rgb(87, 86, 86);
color: rgb(245, 241, 235);
}</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
Expand Down Expand Up @@ -76,7 +58,7 @@ QPushButton {
</font>
</property>
<property name="inputMethodHints">
<set>Qt::ImhNone</set>
<set>Qt::InputMethodHint::ImhNone</set>
</property>
<property name="readOnly">
<bool>true</bool>
Expand Down
22 changes: 2 additions & 20 deletions forms/launch_parameters_window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,6 @@
<iconset>
<normaloff>../favicon.ico</normaloff>../favicon.ico</iconset>
</property>
<property name="styleSheet">
<string notr="true">QDialog {
background-color: rgb(245, 241, 235);
}

QLabel {
color: rgb(87, 86, 86);
}

QCheckBox {
color: rgb(87, 86, 86);
}

QPushButton {
background-color: rgb(87, 86, 86);
color: rgb(245, 241, 235);
}</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
Expand All @@ -51,10 +33,10 @@ For example, instead of --volume=50 use player.volume = 50</string>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
<set>QDialogButtonBox::StandardButton::Apply|QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Save</set>
</property>
</widget>
</item>
Expand Down
Loading

0 comments on commit 18bae76

Please sign in to comment.