diff --git a/assets/no_whitelist.svg b/assets/no_whitelist.svg
new file mode 100644
index 0000000..5f914fa
--- /dev/null
+++ b/assets/no_whitelist.svg
@@ -0,0 +1,5 @@
+
+
\ No newline at end of file
diff --git a/readme.md b/readme.md
index ff47c9e..10ec607 100644
--- a/readme.md
+++ b/readme.md
@@ -49,3 +49,10 @@ Execute `python install.py`
Note: in case if you aren't virtual environment, the script stop.
Enjoy.
+
+## Generate resource file
+
+`rcc -g python .\resources.qrc -o .\src\resources_rc.py`
+
+You need to give complete path of rcc:
+`H:\Qt\6.10.2\mingw_64\bin\rcc.exe -g python resources.qrc -o .\src\resources.py`
diff --git a/resources.qrc b/resources.qrc
index e18a448..5ed8b72 100644
--- a/resources.qrc
+++ b/resources.qrc
@@ -1,5 +1,6 @@
+ assets/no_whitelist.svg
assets/closed-store-info.svg
assets/letter-i-info.svg
assets/open-store-info.svg
diff --git a/src/config/constants.py b/src/config/constants.py
index c22227e..14c4b31 100644
--- a/src/config/constants.py
+++ b/src/config/constants.py
@@ -7,7 +7,7 @@ from PySide6.QtGui import QColor
# ---------------------------------------------------------------------------
NO_STAFF = True
-NO_WHITELIST = False
+NO_WHITELIST = True
REDIRECT_URI = "http://localhost:5000/callback"
SCOPES = ["identify"]
diff --git a/src/resources.py b/src/resources.py
index 53dcaaf..3a36819 100644
--- a/src/resources.py
+++ b/src/resources.py
@@ -181151,6 +181151,119 @@ ill:#60C3AB;\x22 cx\
=\x22225.067\x22 cy=\x224\
43.733\x22 r=\x2211.73\
3\x22/>\x0d\x0a\
+\x00\x00\x06\xe2\
+<\
+?xml version=\x221.\
+0\x22 encoding=\x22utf\
+-8\x22?>\x0a\
"
qt_resource_name = b"\
@@ -181217,12 +181330,16 @@ qt_resource_name = b"\
\x0cA\xab\xe7\
\x00c\
\x00o\x00m\x00p\x00u\x00t\x00e\x00r\x00-\x00t\x00v\x00.\x00s\x00v\x00g\
+\x00\x10\
+\x0b[_\x07\
+\x00n\
+\x00o\x00_\x00w\x00h\x00i\x00t\x00e\x00l\x00i\x00s\x00t\x00.\x00s\x00v\x00g\
"
qt_resource_struct = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x00\x00\x00\
-\x00\x00\x00\x00\x00\x02\x00\x00\x00\x0d\x00\x00\x00\x02\
+\x00\x00\x00\x00\x00\x02\x00\x00\x00\x0e\x00\x00\x00\x02\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x01\xba\x00\x00\x00\x00\x00\x01\x00+\xdd\xc1\
\x00\x00\x01\x9c\x0ft\xac\xa3\
@@ -181240,6 +181357,8 @@ qt_resource_struct = b"\
\x00\x00\x01\x9c\xd8\xa1X\x0f\
\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x01\x00(\xfb*\
\x00\x00\x01\x9c\xd9\xa2\xfa\xf9\
+\x00\x00\x02\x0e\x00\x00\x00\x00\x00\x01\x00,7\xc6\
+\x00\x00\x01\x9d\x16B\x01\xc7\
\x00\x00\x00\xb2\x00\x00\x00\x00\x00\x01\x00)\x83\x02\
\x00\x00\x01\x9c\xed\xb0@\xf2\
\x00\x00\x01\xea\x00\x00\x00\x00\x00\x01\x00,1\x15\
diff --git a/src/ui/main_window.py b/src/ui/main_window.py
index a3594c7..ba901da 100644
--- a/src/ui/main_window.py
+++ b/src/ui/main_window.py
@@ -35,6 +35,21 @@ class MainWindow(QMainWindow):
self.setWindowFlags(Qt.WindowType.FramelessWindowHint | Qt.WindowType.Window)
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
+ self.ui.stackedWidget.setCurrentIndex(0)
+
+ if NO_WHITELIST:
+ self.ui.stackedWidget.setCurrentIndex(2)
+ # msg = CustomMessageBox(
+ # title="La Tanière: Non whitelisté",
+ # message="\n\nTu n'est pas whitelisté sur le serveur\n\n"
+ # "Assure-toi de te faire whitelister.\n\n"
+ # "Lorsque cela sera fait, relance le launcher.",
+ # icon_type=CustomMessageBox.WARNING,
+ # buttons=CustomMessageBox.OK
+ # )
+ # msg.exec()
+ # quit_application()
+
# Test bouton en contruction
en_chantier = True
if en_chantier:
@@ -87,17 +102,6 @@ class MainWindow(QMainWindow):
self._center_window()
self.show()
- if NO_WHITELIST:
- msg = CustomMessageBox(
- title="La Tanière: Non whitelisté",
- message="\n\nTu n'est pas whitelisté sur le serveur\n\n"
- "Assure-toi de te faire whitelister.\n\n"
- "Lorsque cela sera fait, relance le launcher.",
- icon_type=CustomMessageBox.WARNING,
- buttons=CustomMessageBox.OK
- )
- msg.exec()
- quit_application()
# ------------------------------------------------------------------
# Setup
diff --git a/styles/styles.qss b/styles/styles.qss
index 337a231..13b7066 100644
--- a/styles/styles.qss
+++ b/styles/styles.qss
@@ -15,19 +15,17 @@ QFrame#logo_frame {
background-position: center;
}
-QFrame#frame_2 QLabel {
+QFrame#frame_2 QLabel,
+QFrame#frame_6 QLabel {
color: rgb(163, 177, 198);
}
-QFrame#frame_2 QLabel#discord_title_label {
+QFrame#frame_2 QLabel#discord_info_title_label,
+QFrame#frame_6 QLabel#whitelist_info_title_label {
font-size: 28px;
color: rgb(255, 255, 255) /* label enfant, obligé de définir la couleur car ne prend pas la général */
}
-QFrame#frame_2 QLabel#label_2 {
- /* font-family: 'sans serif'; */
-}
-
QLabel#maintitle_label {
font-size: 38px;
}
@@ -111,7 +109,8 @@ QPushButton#staff_btn:pressed
QPushButton#discord_btn,
QPushButton#discord_auth_btn,
-QPushButton#intranet_btn
+QPushButton#intranet_btn,
+QPushButton#whitelist_ok_boutton
{
background-color: rgba(32, 58, 67, 0.6); /* Bleu très sombre semi-transparent */
border: 1px solid rgba(255, 255, 255, 0.1);
@@ -122,7 +121,8 @@ QPushButton#intranet_btn
}
QPushButton#discord_btn:hover,
-QPushButton#discord_auth_btn:hover
+QPushButton#discord_auth_btn:hover,
+QPushButton#whitelist_ok_boutton:hover
{
background-color: rgba(88, 101, 242, 0.4); /* Fond bleu Discord translucide */
border: 2px solid #7289da; /* Bordure plus épaisse et claire pour l'éclat */
diff --git a/ui/mainwindow_vertical_pager.ui b/ui/mainwindow_vertical_pager.ui
index 0664e7e..2b41ebe 100644
--- a/ui/mainwindow_vertical_pager.ui
+++ b/ui/mainwindow_vertical_pager.ui
@@ -627,7 +627,7 @@
700
- 0
+ 482
@@ -640,39 +640,39 @@
QFrame::Shape::NoFrame
- 0
+ 2
-
+
0
- 650
+ 482
700
- 650
+ 482
- 10
- 10
- 680
- 650
+ 0
+ 0
+ 700
+ 482
0
- 650
+ 0
- 680
+ 700
650
@@ -907,6 +907,22 @@
+ -
+
+
+ Qt::Orientation::Vertical
+
+
+ QSizePolicy::Policy::Fixed
+
+
+
+ 20
+ 20
+
+
+
+
-
@@ -959,22 +975,6 @@
- -
-
-
- Qt::Orientation::Vertical
-
-
- QSizePolicy::Policy::Fixed
-
-
-
- 20
- 170
-
-
-
-
@@ -982,20 +982,20 @@
0
- 650
+ 482
700
- 650
+ 482
- 10
- 10
+ 0
+ 0
700
482
@@ -1078,7 +1078,7 @@
-
-
+
32
@@ -1103,7 +1103,7 @@
-
-
+
180
@@ -1135,7 +1135,7 @@
-
-
+
700
@@ -1322,6 +1322,357 @@
+
+
+
+ 700
+ 482
+
+
+
+
+ 700
+ 482
+
+
+
+
+
+ 0
+ 0
+ 700
+ 482
+
+
+
+
+ 700
+ 482
+
+
+
+
+ 700
+ 482
+
+
+
+ QFrame::Shape::NoFrame
+
+
+ QFrame::Shadow::Raised
+
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 80
+
+
+
+
+ 16777215
+ 80
+
+
+
+ QFrame::Shape::NoFrame
+
+
+ QFrame::Shadow::Raised
+
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+ Qt::Orientation::Horizontal
+
+
+
+ 292
+ 20
+
+
+
+
+ -
+
+
+
+ 32
+ 32
+
+
+
+
+ 32
+ 32
+
+
+
+
+
+
+ :/assets/letter-i-info.svg
+
+
+ true
+
+
+
+ -
+
+
+
+ 180
+ 30
+
+
+
+ Information
+
+
+ true
+
+
+
+ -
+
+
+ Qt::Orientation::Horizontal
+
+
+
+ 291
+ 20
+
+
+
+
+
+
+
+ -
+
+
+
+ 700
+ 16777215
+
+
+
+ QFrame::Shape::NoFrame
+
+
+ QFrame::Shadow::Raised
+
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+ Qt::Orientation::Vertical
+
+
+ QSizePolicy::Policy::Fixed
+
+
+
+ 0
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 50
+
+
+
+
+ 16777215
+ 50
+
+
+
+ Tu n’es pas whitelisté sur le serveur.
+Inscris-toi sur Discord, puis relance le launcher.
+
+
+ Qt::AlignmentFlag::AlignCenter
+
+
+
+ -
+
+
+ Qt::Orientation::Vertical
+
+
+ QSizePolicy::Policy::Fixed
+
+
+
+ 20
+ 30
+
+
+
+
+ -
+
+
+ QFrame::Shape::NoFrame
+
+
+ QFrame::Shadow::Raised
+
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+ Qt::Orientation::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+
+ 380
+ 50
+
+
+
+
+ 250
+ 50
+
+
+
+ Compris !
+
+
+
+ :/assets/no_whitelist.svg:/assets/no_whitelist.svg
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+ Qt::Orientation::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+
+
+
+ -
+
+
+ Qt::Orientation::Vertical
+
+
+ QSizePolicy::Policy::Fixed
+
+
+
+ 20
+ 200
+
+
+
+
+
+
+
+
+
+