Compare commits
3 Commits
de80aedafc
...
99bc9c38a2
Author | SHA1 | Date |
---|---|---|
linuswck | 99bc9c38a2 | |
linuswck | 4d1a0c8495 | |
linuswck | b9261cc306 |
|
@ -12,6 +12,7 @@ from pglive.sources.live_plot import LiveLinePlot
|
|||
from pglive.sources.live_plot_widget import LivePlotWidget
|
||||
from pglive.sources.live_axis import LiveAxis
|
||||
import sys
|
||||
import os
|
||||
import argparse
|
||||
import logging
|
||||
import asyncio
|
||||
|
@ -371,6 +372,11 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
|||
self.kirdy = Kirdy()
|
||||
self.setupUi(self)
|
||||
|
||||
# Load Global QT Style Sheet Settings
|
||||
qss=os.path.join(os.path.dirname(__file__), "ui/mainwindow.qss")
|
||||
with open(qss,"r") as fh:
|
||||
self.setStyleSheet(fh.read())
|
||||
|
||||
self.ip_addr = self.DEFAULT_IP_ADDR
|
||||
self.port = self.DEFAULT_PORT
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
QPushButton:disabled { color: gray }
|
||||
ParameterTree:disabled { color: gray }
|
||||
QToolButton:disabled { color: gray }
|
||||
QDoubleSpinBox:disabled { color: gray }
|
||||
QCheckBox:disabled { color: gray }
|
||||
QMenu:disabled { color: gray }
|
|
@ -148,7 +148,7 @@ impl LdDrive{
|
|||
}
|
||||
|
||||
pub fn ld_set_i(&mut self, i: ElectricCurrent){
|
||||
self.settings.ld_drive_current = i;
|
||||
self.settings.ld_drive_current = i.min(self.settings.ld_drive_current_limit);
|
||||
LdCurrentOutCtrlTimer::set_target_i_and_listen_irq(i, self.ctrl.get_i_set());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue