mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-21 16:14:28 +08:00
0.3.6
减少工程复杂度
This commit is contained in:
@@ -1425,7 +1425,11 @@ public partial class MainWindow
|
||||
return null;
|
||||
}
|
||||
|
||||
var component = runtimeDescriptor.CreateControl(_currentDesktopCellSize, _timeZoneService, _weatherDataService);
|
||||
var component = runtimeDescriptor.CreateControl(
|
||||
_currentDesktopCellSize,
|
||||
_timeZoneService,
|
||||
_weatherDataService,
|
||||
_recommendationInfoService);
|
||||
component.Classes.Add(DesktopComponentClass);
|
||||
return component;
|
||||
}
|
||||
@@ -2533,7 +2537,11 @@ public partial class MainWindow
|
||||
var previewHeight = previewSpan.HeightCells * previewCellSize;
|
||||
var renderCellSize = Math.Clamp(previewCellSize * 1.15, 26, 110);
|
||||
|
||||
var previewControl = descriptor.CreateControl(renderCellSize, _timeZoneService, _weatherDataService);
|
||||
var previewControl = descriptor.CreateControl(
|
||||
renderCellSize,
|
||||
_timeZoneService,
|
||||
_weatherDataService,
|
||||
_recommendationInfoService);
|
||||
|
||||
var previewSurface = new Border
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user