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

issue with calendar #207

Open
thiva7 opened this issue Dec 12, 2022 · 3 comments · Fixed by #209
Open

issue with calendar #207

thiva7 opened this issue Dec 12, 2022 · 3 comments · Fixed by #209

Comments

@thiva7
Copy link

thiva7 commented Dec 12, 2022

when adding calendar is not "add color " to selected date
simple code with only calendar widget

from PyQt5 import QtCore, QtGui, QtWidgets
import qdarktheme
from qdarktheme.qtpy.QtWidgets import QApplication


class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 26))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

        # add calendar to centralwidget
        self.calendar = QtWidgets.QCalendarWidget(self.centralwidget)
        self.calendar.setObjectName("calendar")
        self.verticalLayout.addWidget(self.calendar)


    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))


if __name__ == "__main__":
    import sys

    qdarktheme.enable_hi_dpi()
    app = QApplication(sys.argv)
    qdarktheme.setup_theme("auto")
    MainWindow = QtWidgets.QMainWindow()
    ui = Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    sys.exit(app.exec_())

@5yutan5
Copy link
Owner

5yutan5 commented Dec 12, 2022

Hi @thiva7. Thank you for your report.
I could replicate this problem on Windows, but Mac cannot.
Recently I only tested on Mac.
I will try to fix it.

@5yutan5
Copy link
Owner

5yutan5 commented Dec 12, 2022

Hi this is fix on #209.

@5yutan5 5yutan5 reopened this Dec 12, 2022
@5yutan5
Copy link
Owner

5yutan5 commented Dec 12, 2022

This change has been released on v2.0.0.

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 a pull request may close this issue.

2 participants