控制网复测平面基准归算程序(包含控制网复测平面基准计算,平面控制网稳定性计算,水准测段高差稳定计算三个程序功能)
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

app_functions.py 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # ///////////////////////////////////////////////////////////////
  2. #
  3. # BY: WANDERSON M.PIMENTA
  4. # PROJECT MADE WITH: Qt Designer and PySide6
  5. # V: 1.0.0
  6. #
  7. # This project can be used freely for all uses, as long as they maintain the
  8. # respective credits only in the Python scripts, any information in the visual
  9. # interface (GUI) can be modified without any implication.
  10. #
  11. # There are limitations on Qt licenses if you want to use your products
  12. # commercially, I recommend reading them on the official website:
  13. # https://doc.qt.io/qtforpython/licenses.html
  14. #
  15. # ///////////////////////////////////////////////////////////////
  16. # MAIN FILE
  17. # ///////////////////////////////////////////////////////////////
  18. from Front.main import *
  19. from Front.main import MainWindow
  20. from Front.modules import Settings
  21. # WITH ACCESS TO MAIN WINDOW WIDGETS
  22. # ///////////////////////////////////////////////////////////////
  23. class AppFunctions(MainWindow):
  24. def setThemeHack(self):
  25. Settings.BTN_LEFT_BOX_COLOR = "background-color: #495474;"
  26. Settings.BTN_RIGHT_BOX_COLOR = "background-color: #495474;"
  27. Settings.MENU_SELECTED_STYLESHEET = MENU_SELECTED_STYLESHEET = """
  28. border-left: 22px solid qlineargradient(spread:pad, x1:0.034, y1:0, x2:0.216, y2:0, stop:0.499 rgba(255, 121, 198, 255), stop:0.5 rgba(85, 170, 255, 0));
  29. background-color: #566388;
  30. """
  31. # 设置UI颜色
  32. self.ui.lineEdit.setStyleSheet("background-color: #6272a4;")
  33. self.ui.createFile.setStyleSheet("background-color: #6272a4;")
  34. self.ui.download_1.setStyleSheet("background-color: #6272a4;")
  35. self.ui.download_2.setStyleSheet("background-color: #6272a4;")
  36. self.ui.download_3.setStyleSheet("background-color: #6272a4;")
  37. self.ui.export_2.setStyleSheet("background-color: #6272a4;")
  38. self.ui.lineEdit_2.setStyleSheet("background-color: #6272a4;")
  39. self.ui.search.setStyleSheet("background-color: #6272a4;")
  40. self.ui.compute.setStyleSheet("background-color: #6272a4;")
  41. # self.ui.plainTextEdit.setStyleSheet("background-color: #6272a4;")
  42. # self.ui.tableWidget_4.setStyleSheet("QScrollBar:vertical { background: #6272a4; } QScrollBar:horizontal { background: #6272a4; }")
  43. # self.ui.scrollArea.setStyleSheet("QScrollBar:vertical { background: #6272a4; } QScrollBar:horizontal { background: #6272a4; }")
  44. self.ui.comboBox.setStyleSheet("background-color: #6272a4;")
  45. self.ui.comboBox_2.setStyleSheet("background-color: #6272a4;")
  46. self.ui.comboBox_3.setStyleSheet("background-color: #6272a4;")
  47. self.ui.comboBox_4.setStyleSheet("background-color: #6272a4;")
  48. # self.ui.horizontalScrollBar.setStyleSheet("background-color: #6272a4;")
  49. # self.ui.verticalScrollBar.setStyleSheet("background-color: #6272a4;")
  50. # self.ui.commandLinkButton.setStyleSheet("color: #ff79c6;")